Method: ScbiPlot::Plot#initialize
- Defined in:
- lib/scbi_plot/plot.rb
#initialize(file_name, title = nil) ⇒ Plot
Returns a new instance of Plot.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/scbi_plot/plot.rb', line 45 def initialize(file_name,title=nil) @x=[] @y=[] @x_label='x' @y_label='y' @y2_label='y' @x_range='' @y_range='' @y2_range='' @title=title @file_name=file_name if @title.nil? @title=file_name end @x_limit=20 @line_width=1 end |