Method: Charty::Backends::Pyplot#old_style_render
- Defined in:
- lib/charty/backends/pyplot.rb
#old_style_render(context, filename) ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'lib/charty/backends/pyplot.rb', line 45 def old_style_render(context, filename) plot(@pyplot, context) if filename FileUtils.mkdir_p(File.dirname(filename)) @pyplot.savefig(filename) end @pyplot.show end |