Module: Numo

Defined in:
lib/numo/gnuplot.rb

Defined Under Namespace

Classes: Gnuplot, GnuplotError

Class Method Summary collapse

Class Method Details

.gnuplot(&block) ⇒ Object


3
4
5
6
7
8
9
# File 'lib/numo/gnuplot.rb', line 3

def gnuplot(&block)
  if block
    Gnuplot.default.instance_eval(&block)
  else
    Gnuplot.default
  end
end

.noteplot(&block) ⇒ Object


12
13
14
# File 'lib/numo/gnuplot.rb', line 12

def noteplot(&block)
  Gnuplot::NotePlot.new(&block)
end