color(fill, border)
click to toggle source
colors(fill, border)
click to toggle source
colour(fill, border)
click to toggle source
def colour(fill, border)
tk_call_without_enc(@chart, 'colour', fill, border)
self
end
colours(fill, border)
click to toggle source
grid_size(nxcells, nycells)
click to toggle source
def grid_size(nxcells, nycells)
tk_call_without_enc(@chart, 'gridsize', nxcells, nycells)
self
end
plot_data(dat)
click to toggle source
def plot_data(dat)
tk_call_without_enc(@chart, 'plotdata', dat)
self
end
plot_funcont(conts, cmd=Proc.new)
click to toggle source
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)
click to toggle source
def plot_function(cmd=Proc.new)
Tk.ip_eval("proc #{@path}_#{@chart} {x y} {#{install_cmd(cmd)} $x $y}")
tk_call_without_enc(@chart, 'plotfunc', "#{@path}_#{@chart}")
self
end
plot_line(dat, color)
click to toggle source
def plot_line(dat, color)
tk_call_without_enc(@chart, 'plotline', dat, color)
self
end
zconfig(key, value=None)
click to toggle source
def zconfig(key, value=None)
if key.kind_of?(Hash)
tk_call_without_enc(@chart, 'zconfig', *hash_kv(key, true))
else
tk_call(@chart, 'zconfig', "-#{key}", value)
end
self
end