Class: GnuplotRB::Splot

Inherits:
Plot
  • Object
show all
Defined in:
lib/gnuplotrb/splot.rb

Overview

Overview

Splot class correspond to simple 3D visualisation

Constant Summary

Constants included from OptionHandling

OptionHandling::QUOTED_OPTIONS

Instance Attribute Summary

Attributes inherited from Plot

#datasets

Instance Method Summary collapse

Methods inherited from Plot

#[], #add_datasets, #plot, #remove_dataset, #replace_dataset, #update_dataset

Methods included from Plottable

#method_missing, #own_terminal, #plot, #respond_to?, #to_iruby, #to_specific_term

Methods included from OptionHandling

#new_with_options, option_to_string, #options, ruby_class_to_gnuplot, string_key, valid_terminal?, validate_terminal_options

Constructor Details

#initialize(*datasets, **options) ⇒ Splot

Arguments

  • datasets are either instances of Dataset class or

    data, **dataset_options

    arrays

  • options will be considered as 'settable' options of gnuplot ('set xrange [1:10]' for { xrange: 1..10 }, “set title 'plot'” for { title: 'plot' } etc)


13
14
15
16
# File 'lib/gnuplotrb/splot.rb', line 13

def initialize(*datasets, **options)
  super
  @cmd = 'splot '
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GnuplotRB::Plottable