depictr.save_plot#
- depictr.save_plot(plot, filename, width=7, height=4.5, dpi=300, units='in', **kwargs)#
Save a depictr/plotnine plot at publication resolution.
- Parameters:
plot (plotnine.ggplot) – The plot to save.
filename (str) – Output path; the extension sets the format (
.png,.pdf,.svg).width (float) – Figure size, in
units.height (float) – Figure size, in
units.dpi (int) – Dots per inch (300 suits print).
units (str) – Size units (
"in","cm"or"mm").**kwargs – Passed to
plotnine.ggplot.save().
- Returns:
The filename written.
- Return type: