Methods
- #
- B
- C
- D
- G
- I
- N
- P
- R
- T
- V
Included Modules
Constants
TkCommandNames | = | [ 'canvas'.freeze, '::Plotchart::createXYPlot'.freeze ].freeze |
Class Public methods
new(*args)
Link
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 337 def initialize(*args) # args := ([parent,] xaxis, yaxis [, keys]) # xaxis := Array of [minimum, maximum, stepsize] # yaxis := Array of [minimum, maximum, stepsize] if args[0].kind_of?(Array) @xaxis = args.shift @yaxis = args.shift super(*args) # create canvas widget else parent = args.shift @xaxis = args.shift @yaxis = 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
__destroy_hook__()
Link
color_map(colors)
Link
contourbox(xcrd, ycrd, vals, clss=None)
Link
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 399 def contourbox(xcrd, ycrd, vals, clss=None) xcrd = array2tk_list(xcrd) if xcrd.kind_of?(Array) ycrd = array2tk_list(ycrd) if ycrd.kind_of?(Array) vals = array2tk_list(vals) if vals.kind_of?(Array) clss = array2tk_list(clss) if clss.kind_of?(Array) tk_call(@chart, 'contourbox', xcrd, ycrd, vals, clss) self end
contourfill(xcrd, ycrd, vals, clss=None)
Link
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 389 def contourfill(xcrd, ycrd, vals, clss=None) xcrd = array2tk_list(xcrd) if xcrd.kind_of?(Array) ycrd = array2tk_list(ycrd) if ycrd.kind_of?(Array) vals = array2tk_list(vals) if vals.kind_of?(Array) clss = array2tk_list(clss) if clss.kind_of?(Array) tk_call(@chart, 'contourfill', xcrd, ycrd, vals, clss) self end
contourlines(xcrd, ycrd, vals, clss=None)
Link
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 379 def contourlines(xcrd, ycrd, vals, clss=None) xcrd = array2tk_list(xcrd) if xcrd.kind_of?(Array) ycrd = array2tk_list(ycrd) if ycrd.kind_of?(Array) vals = array2tk_list(vals) if vals.kind_of?(Array) clss = array2tk_list(clss) if clss.kind_of?(Array) tk_call(@chart, 'contourlines', xcrd, ycrd, vals, clss) self end
dataconfig(series, key, value=None)
Link
dot(series, xcrd, ycrd, value)
Link
dotconfig(series, key, value=None)
Link
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 477 def dotconfig(series, key, value=None) if key.kind_of?(Hash) tk_call_without_enc(@chart, 'dotconfig', _get_eval_enc_str(series), *hash_kv(key, true)) else tk_call(@chart, 'dotconfig', series, "-#{key}", value) end self end
grid_cells(xcrd, ycrd)
Link
interval(series, xcrd, ymin, ymax, ycenter=None)
Link
plot(series, x, y)
Link
rchart(series, xcrd, ycrd)
Link
rescale(xscale, yscale)
Link
trend(series, xcrd, ycrd)
Link
vector(series, xcrd, ycrd, ucmp, vcmp)
Link
vectorconfig(series, key, value=None)
Link
# File ext/tk/lib/tkextlib/tcllib/plotchart.rb, line 461 def vectorconfig(series, key, value=None) if key.kind_of?(Hash) tk_call_without_enc(@chart, 'vectorconfig', _get_eval_enc_str(series), *hash_kv(key, true)) else tk_call(@chart, 'vectorconfig', series, "-#{key}", value) end self end