Class: Plottr::Scatter
- Inherits:
-
Object
- Object
- Plottr::Scatter
- Defined in:
- lib/plottr.rb
Instance Method Summary collapse
- #gen_string_scatter_plot ⇒ Object
-
#initialize(coords_array) ⇒ Scatter
constructor
A new instance of Scatter.
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_plot ⇒ Object
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 |