Module: Daru::View::Adapter::NyaplotAdapter
- Extended by:
- NyaplotAdapter
- Included in:
- NyaplotAdapter
- Defined in:
- lib/daru/view/adapters/nyaplot.rb
Instance Method Summary collapse
- #export_html_file(plot, path) ⇒ Object
- #generate_body(plot) ⇒ Object
- #init(data, options) ⇒ Object
- #init_iruby ⇒ Object
- #init_script ⇒ Object
- #show_in_iruby(plot) ⇒ Object
Instance Method Details
#export_html_file(plot, path) ⇒ Object
16 17 18 |
# File 'lib/daru/view/adapters/nyaplot.rb', line 16 def export_html_file(plot, path) plot.export_html path end |
#generate_body(plot) ⇒ Object
28 29 30 |
# File 'lib/daru/view/adapters/nyaplot.rb', line 28 def generate_body(plot) plot.to_iruby[1] end |
#init(data, options) ⇒ Object
11 12 13 14 |
# File 'lib/daru/view/adapters/nyaplot.rb', line 11 def init(data, ) data_new = guess_data(data) data_new.plot() end |
#init_iruby ⇒ Object
32 33 34 |
# File 'lib/daru/view/adapters/nyaplot.rb', line 32 def init_iruby Nyaplot.init_iruby end |
#init_script ⇒ Object
24 25 26 |
# File 'lib/daru/view/adapters/nyaplot.rb', line 24 def init_script Nyaplot.init_script end |
#show_in_iruby(plot) ⇒ Object
20 21 22 |
# File 'lib/daru/view/adapters/nyaplot.rb', line 20 def show_in_iruby(plot) plot.show end |