# 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
# 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
# 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
# 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
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 203
def polar_coordinates(radmax)
tk_call_without_enc('::Plotchart::polarCoordinates', @path, radmax)
self
end
# 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
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 141
def save_plot(filename)
tk_call_without_enc(@chart, 'saveplot', filename)
self
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 221
def set_zoom_pan()
tk_call_without_enc('::Plotchart::setZoomPan', @path)
self
end
# 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
# 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
# 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
# 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
# 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
# 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
# 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
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.