Module: Tk::Tcllib::Plotchart::ChartMethod

Module | Tk::Tcllib::Plotchart::ChartMethod
In: | tk/lib/tkextlib/tcllib/plotchart.rb

### Methods

coords_3D_to_pixel coords_to_pixel determine_scale pixel_to_coords polar_coordinates polar_to_pixel save_plot set_zoom_pan title view_port world_3D_coordinates world_coordinates xconfig xtext yconfig ytext

### Included Modules

TkCore

### Public Instance methods

coords_3D_to_pixel(x, y, z)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 199
        def coords_3D_to_pixel(x, y, z)
          list(tk_call_without_enc('::Plotchart::coords3DToPixel', @path, x, y, z))
        end

coords_to_pixel(x, y)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 195
        def coords_to_pixel(x, y)
          list(tk_call_without_enc('::Plotchart::coordsToPixel', @path, x, y))
        end

determine_scale(xmax, ymax)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 216
        def determine_scale(xmax, ymax)
          tk_call_without_enc('::Plotchart::determineScale', @path, xmax, ymax)
          self
        end

pixel_to_coords(x, y)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 212
        def pixel_to_coords(x, y)
          list(tk_call_without_enc('::Plotchart::coordsToPixel', @path, x, y))
        end

polar_coordinates(radmax)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 203
        def polar_coordinates(radmax)
          tk_call_without_enc('::Plotchart::polarCoordinates', @path, radmax)
          self
        end

polar_to_pixel(rad, phi)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 208
        def polar_to_pixel(rad, phi)
          list(tk_call_without_enc('::Plotchart::polarToPixel', @path, rad, phi))
        end

save_plot(filename)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 141
        def save_plot(filename)
          tk_call_without_enc(@chart, 'saveplot', filename)
          self
        end

set_zoom_pan()

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 221
        def set_zoom_pan()
          tk_call_without_enc('::Plotchart::setZoomPan', @path)
          self
        end

title(str)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 136
        def title(str)
          tk_call_without_enc(@chart, 'title', _get_eval_enc_str(str))
          self
        end

view_port(*args)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 177
        def view_port(*args) # args := pxmin, pymin, pxmax, pymax
          tk_call_without_enc('::Plotchart::viewPort', @path, *(args.flatten))
          self
        end

world_3D_coordinates(*args)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 188
        def world_3D_coordinates(*args)
          # args := xmin, ymin, zmin, xmax, ymax, zmax
          tk_call_without_enc('::Plotchart::world3DCoordinates',
                              @path, *(args.flatten))
          self
        end

world_coordinates(*args)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 182
        def world_coordinates(*args) # args := xmin, ymin, xmax, ymax
          tk_call_without_enc('::Plotchart::worldCoordinates',
                              @path, *(args.flatten))
          self
        end

xconfig(key, value=None)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 156
        def xconfig(key, value=None)
          if key.kind_of?(Hash)
            tk_call_without_enc(@chart, 'xconfig', *hash_kv(key, true))
          else
            tk_call_without_enc(@chart, 'xconfig',
                                "-#{key}", _get_eval_enc_str(value))
          end
          self
        end

xtext(str)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 146
        def xtext(str)
          tk_call_without_enc(@chart, 'xtext', _get_eval_enc_str(str))
          self
        end

yconfig(key, value=None)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 166
        def yconfig(key, value=None)
          if key.kind_of?(Hash)
            tk_call_without_enc(@chart, 'yconfig', *hash_kv(key, true))
          else
            tk_call_without_enc(@chart, 'yconfig',
                                "-#{key}", _get_eval_enc_str(value))
          end
          self
        end

ytext(str)

[Source]

    # File tk/lib/tkextlib/tcllib/plotchart.rb, line 151
        def ytext(str)
          tk_call_without_enc(@chart, 'ytext', _get_eval_enc_str(str))
          self
        end

[Validate]