# File tk/lib/tkextlib/tcllib/plotchart.rb, line 110
def self.coords_3D_to_pixel(w, x, y, z)
list(tk_call_without_enc('::Plotchart::coords3DToPixel', w.path, x, y, z))
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 106
def self.coords_to_pixel(w, x, y)
list(tk_call_without_enc('::Plotchart::coordsToPixel', w.path, x, y))
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 149
def self.determine_scale(*args) # (xmin, xmax, inverted=false)
tk_call_without_enc('::Plotchart::determineScale', *args)
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 73
def self.package_name
PACKAGE_NAME
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 77
def self.package_version
begin
TkPackage.require('Plotchart')
rescue
''
end
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 145
def self.pixel_to_coords(w, x, y)
list(tk_call_without_enc('::Plotchart::pixelToCoords', w.path, x, y))
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 114
def self.plotconfig(*args)
case args.length
when 0, 1, 2
# 0: (no args) --> list of chat types
# 1: charttype --> list of components
# 2: charttype, component --> list of properties
simplelist(tk_call('::Plotchart::plotconfig', *args))
when 3
# 3: charttype, component, property --> current value
tk_call('::Plotchart::plotconfig', *args)
else
# 4: charttype, component, property, value : set new value
# 5+: Error on Tcl/Tk
tk_call('::Plotchart::plotconfig', *args)
nil
end
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 132
def self.plotpack(w, dir, *plots)
tk_call_without_enc('::Plotchart::plotpack', w.path, dir, *plots)
w
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 137
def self.polar_coordinates(w, radmax)
tk_call_without_enc('::Plotchart::polarCoordinates', w.path, radmax)
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 141
def self.polar_to_pixel(w, rad, phi)
list(tk_call_without_enc('::Plotchart::polarToPixel', w.path, rad, phi))
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 153
def self.set_zoom_pan(w)
tk_call_without_enc('::Plotchart::setZoomPan', w.path)
end
# File tk/lib/tkextlib/tcllib/plotchart.rb, line 91
def self.view_port(w, *args) # args := pxmin, pymin, pxmax, pymax
tk_call_without_enc('::Plotchart::viewPort', w.path, *(args.flatten))
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.