Class: GraphKit::GnuplotSetOptions

Inherits:
KitHash show all
Defined in:
lib/graphkit/gnuplot.rb

Constant Summary collapse

GNUPLOT_SETS =
%w[    
    angles            arrow             autoscale         bars
bmargin           border            boxwidth          cbdata
cbdtics           cblabel           cbmtics           cbrange
cbtics            clabel            clip              cntrparam
colorbox          contour           data              datafile 
date_specifiers   decimalsign       dgrid3d           dummy    
encoding          fit               fontpath          format
function          grid              hidden3d          historysize
isosamples        key               label             lmargin
loadpath          locale            log               logscale
macros            mapping           margin            missing
mouse             multiplot         mx2tics           mxtics
my2tics           mytics            mztics            object
offsets           origin            output            palette
parametric        pm3d              pointsize         polar
print             rmargin           rrange            samples
size              style             surface           table
term              terminal          termoption        tics
ticscale          ticslevel         time_specifiers   timefmt
timestamp         title             tmargin           trange
urange            view              vrange            x2data
x2dtics           x2label           x2mtics           x2range
x2tics            x2zeroaxis        xdata             xdtics
xlabel            xmtics            xrange            xtics
xyplane           xzeroaxis         y2data            y2dtics
y2label           y2mtics           y2range           y2tics
y2zeroaxis        ydata             ydtics            ylabel
ymtics            yrange            ytics             yzeroaxis
zdata             zdtics            zero              zeroaxis
zlabel            zmtics            zrange            ztics].map{|s| s.to_sym}

Instance Method Summary collapse

Methods inherited from KitHash

from_hash, #inspect

Methods included from Kit

#check, #method_missing

Methods inherited from Hash

#modify

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Kit

Instance Method Details

#[]=(opt, val) ⇒ Object



50
51
52
53
# File 'lib/graphkit/gnuplot.rb', line 50

def []=(opt, val)
  raise "#{opt} is not a valid gnuplot set option" unless GNUPLOT_SETS.include? opt
  super
end