Use a Style along with a Graph object to control the appearance in the plot.
Example:
style_object = Style.new(color: :gold) graph_object = FormulaGraph.new(formula: "sin(x)", style: style_object)
Possible values are: :lines, “points”, :dots, etc. More options are documented in the Gnuplot manual.
To set the color of your graph you have two options.
(Not documented)
# File gnuplot.rb, line 339 def to_gnuplot str = "" s = instance_variable_not_empty? "@type" str += "with #{s} " if s s = instance_variable_not_empty? "@color" str += (s =~ /^\d+$/) ? "linecolor #{s} " : "linecolor rgb \'#{s}\' " if s s = instance_variable_not_empty? "@size" str += "pointsize #{s} " if s s = instance_variable_not_empty? "@width" str += "linewidth #{s} " if s str end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.