In Files

  • tk/lib/tkextlib/tcllib/plotchart.rb

Class/Module Index [+]

Quicksearch

Tk::Tcllib::Plotchart::ChartMethod

Public Instance Methods

coords_3D_to_pixel(x, y, z) click to toggle 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) click to toggle 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) click to toggle 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) click to toggle 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) click to toggle 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) click to toggle 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) click to toggle 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() click to toggle 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) click to toggle 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) click to toggle 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) click to toggle 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) click to toggle 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) click to toggle 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) click to toggle 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) click to toggle 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) click to toggle 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
            

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.

blog comments powered by Disqus