class GnuPlot
Public Class Methods
commandstring()
click to toggle source
# File lib/gnuplotty/GnuPlot-Class.rb, line 25 def self.commandstring @@commandstring end
commandstring_reset()
click to toggle source
# File lib/gnuplotty/GnuPlot-Class.rb, line 29 def self.commandstring_reset @@commandstring='' end
new(command,options='')
click to toggle source
# File lib/gnuplotty/GnuPlot-Class.rb, line 10 def initialize(command,options='') @command=command @options=options end
show()
click to toggle source
# File lib/gnuplotty/GnuPlot-Class.rb, line 21 def self.show `gnuplot -persist -e \"#{@@commandstring}\"` end
Public Instance Methods
add()
click to toggle source
# File lib/gnuplotty/GnuPlot-Class.rb, line 15 def add c=@command+' '+@options @@commandstring=@@commandstring+"; " unless @@commandstring=='' @@commandstring=@@commandstring+c end