I'm building a simulation tool in python that outputs a number of plots using plotnine. However, for each individual plot I save, I get the following error messages:
C:\Users\tarca\Anaconda3\lib\site-packages\plotnine\ggplot.py:706: UserWarning: Saving 10 x 3 in image.
from_inches(height, units), units))
C:\Users\tarca\Anaconda3\lib\site-packages\plotnine\ggplot.py:707: UserWarning: Filename: my_plot.png
warn('Filename: {}'.format(filename))
I've already tried manually setting all of the arguments, and I've tried saving the files using both plot.save() and ggsave() - both yield the same result. If you search the error, the only thing that comes up is that the author of the following tutorial gets the same errors, though they are not addressed therein:
https://monashdatafluency.github.io/python-workshop-base/modules/plotting_with_ggplot/
To save the plots, I'm using code similar to:
plot.save(filename = 'my_plot.png', width = 10, height = 3, dpi = 300)
I'm hoping to be able to save the plots without generating any annoying messages that may confuse anyone using the program.