Object
Container for a single dataset being displayed by gnuplot. Each object has a reference to the actual data being plotted as well as settings that control the "plot" command. The data object must support the to_gplot command.
data The data that will be plotted. The only requirement is that the object understands the to_gplot method.
The following attributes correspond to their related string in the gnuplot command. See the gnuplot documentation for more information on this.
title, with
@todo Use the delegator to delegate to the data property.
# File lib/gnuplot.rb, line 225 def plot_args (io = "") # Order of these is important or gnuplot barfs on 'em io << ( (@data.instance_of? String) ? @data : "'-'" ) io << " using #{@using}" if @using io << " axes #{@axes}" if @axes io << case @title when /notitle/ then " notitle" when nil then "" else " title '#{@title}'" end io << " matrix" if @matrix io << " smooth #{@smooth}" if @smooth io << " with #{@with}" if @with io << " linecolor #{@linecolor}" if @linecolor io << " linewidth #{@linewidth}" if @linewidth io end
Generated with the Darkfish Rdoc Generator 2.