Skip to content Skip to sidebar Skip to footer

Setting Figure Size To Be Larger Than Screen Size In Matplotlib

I'm trying to create figures in matplotlib that read nicely in a journal article. I have some larger figures (with subfigures) that I'd like to take up nearly an entire page in por

Solution 1:

This is likely an issue with your backend for plot generation.

You can see what backend you are using by running:

import matplotlib; matplotlib.get_backend()

Try changing the backend to something else, for example:

import matplotlib

matplotlib.use('Agg')

Note that this has to be run before importing matplotlib.pyplot.

Post a Comment for "Setting Figure Size To Be Larger Than Screen Size In Matplotlib"