Class: Plottr::Scatter

Inherits:
Object
  • Object
show all
Defined in:
lib/plottr.rb

Instance Method Summary collapse

Constructor Details

#initialize(coords_array) ⇒ Scatter

Returns a new instance of Scatter.



5
6
7
8
# File 'lib/plottr.rb', line 5

def initialize(coords_array)
  gen_blank_graph(coords_array)
  add_coords_to_blank_graph(coords_array)
end

Instance Method Details

#gen_string_scatter_plotObject



10
11
12
# File 'lib/plottr.rb', line 10

def gen_string_scatter_plot
  " ^\n" + @current_scatter_plot.reverse.join("\n") + "\n" +  @bottom_of_scatter_plot.join("\n")
end