Method: Gnuplot::Plot#set

Defined in:
lib/gnuplot.rb

#set(var, value = "") ⇒ Object

Set a variable to the given value. Var must be a gnuplot variable and value must be the value to set it to. Automatic quoting will be performed if the variable requires it.

This is overloaded by the method_missing method so see that for more readable code.



126
127
128
129
# File 'lib/gnuplot.rb', line 126

def set ( var, value = "" )
  value = "\"#{value}\"" if QUOTED.include? var unless value =~ /^'.*'$/
  @settings << [ :set, var, value ]
end