In Files

Parent

Methods

Files

Gnuplot::Graph

Attributes

title[RW]

This method gives access to the title displayed in the legend of the plot. It expects a String.

If you want to get the Gnuplot default title, just don’t set the title or set the title to nil or “”. Make sure to don’t have notitle set to true.

Example:

 graph_object.title = "custom title"
notitle[RW]

If you don’t want to get any entry in the plot legend at all, you have to set the notitle attribute to true. This method expects a Boolean. If it is set to true, the value of title won’t have no influence.

style[RW]

You can change the look of your graph by applying a Style.

Example:

 graph_object.style = style_object

Public Instance Methods

to_gnuplot() click to toggle source

This method retuns the String containing the gnuplot code. It gets used along with Plot#to_gnuplot.

# File gnuplot.rb, line 217
    def to_gnuplot
      str = ""

      if instance_variable_not_empty? "@notitle"
        str += "notitle "
      else
        s = instance_variable_not_empty? "@title"
        str += "title \"#{s}\" " if s
      end

      s = instance_variable_not_empty? "@style"
      str += s if s

      str
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.