Class: Plotlyrb::Plotly
- Inherits:
-
Object
- Object
- Plotlyrb::Plotly
- Defined in:
- lib/plotlyrb/plotly.rb
Instance Method Summary collapse
- #create_grid(*args) ⇒ Object
- #create_plot_from_grid(*args) ⇒ Object
-
#initialize(headers) ⇒ Plotly
constructor
A new instance of Plotly.
- #plot_image(*args) ⇒ Object
- #plot_images(*args) ⇒ Object
Constructor Details
#initialize(headers) ⇒ Plotly
Returns a new instance of Plotly.
3 4 5 |
# File 'lib/plotlyrb/plotly.rb', line 3 def initialize(headers) @headers = headers end |
Instance Method Details
#create_grid(*args) ⇒ Object
15 16 17 |
# File 'lib/plotlyrb/plotly.rb', line 15 def create_grid(*args) Grid.new(@headers).create(*args) end |
#create_plot_from_grid(*args) ⇒ Object
19 20 21 |
# File 'lib/plotlyrb/plotly.rb', line 19 def create_plot_from_grid(*args) Plot.new(@headers).create_from_grid(*args) end |
#plot_image(*args) ⇒ Object
7 8 9 |
# File 'lib/plotlyrb/plotly.rb', line 7 def plot_image(*args) PlotImage.new(@headers).plot_image(*args) end |
#plot_images(*args) ⇒ Object
11 12 13 |
# File 'lib/plotlyrb/plotly.rb', line 11 def plot_images(*args) PlotImage.plot_images(@headers, *args) end |