Method: Tk::Tcllib::Plotchart::Plot3D#plot_function

Defined in:
lib/tkextlib/tcllib/plotchart.rb

#plot_function(cmd = nil, &block) ⇒ Object



712
713
714
715
716
# File 'lib/tkextlib/tcllib/plotchart.rb', line 712

def plot_function(cmd=nil, &block)
  Tk.ip_eval("proc #{@path}_#{@chart} {x y} {#{install_cmd(cmd || block)} $x $y}")
  tk_call_without_enc(@chart, 'plotfunc', "#{@path}_#{@chart}")
  self
end