Methods
- C
- G
- N
- P
- Z
Included Modules
Constants
TkCommandNames | = | [ 'canvas'.freeze, '::Plotchart::create3DPlot'.freeze ].freeze |
Class Public methods
new(*args)
Link
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 675 def initialize(*args) # args := ([parent,] xaxis, yaxis, zaxis [, keys]) # xaxis := Array of [minimum, maximum, stepsize] # yaxis := Array of [minimum, maximum, stepsize] # zaxis := Array of [minimum, maximum, stepsize] if args[0].kind_of?(Array) @xaxis = args.shift @yaxis = args.shift @zaxis = args.shift super(*args) # create canvas widget else parent = args.shift @xaxis = args.shift @yaxis = args.shift @zaxis = args.shift if parent.kind_of?(Tk::Canvas) @path = parent.path else super(parent, *args) # create canvas widget end end @chart = _create_chart end
Instance Public methods
colour(fill, border)
Link
grid_size(nxcells, nycells)
Link
plot_data(dat)
Link
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 738 def plot_data(dat) # dat has to be provided as a 2 level array. # 1st level contains rows, drawn in y-direction, # and each row is an array whose elements are drawn in x-direction, # for the columns. tk_call_without_enc(@chart, 'plotdata', dat) self end
plot_funcont(conts, cmd=Proc.new)
Link
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 717 def plot_funcont(conts, cmd=Proc.new) conts = array2tk_list(conts) if conts.kind_of?(Array) Tk.ip_eval("proc #{@path}_#{@chart} {x y} {#{install_cmd(cmd)} $x $y}") tk_call_without_enc(@chart, 'plotfuncont', "#{@path}_#{@chart}", conts) self end
plot_function(cmd=Proc.new)
Link
plot_line(dat, color)
Link
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 729 def plot_line(dat, color) # dat has to be provided as a 2 level array. # 1st level contains rows, drawn in y-direction, # and each row is an array whose elements are drawn in x-direction, # for the columns. tk_call_without_enc(@chart, 'plotline', dat, color) self end