Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
Bug summary
When figure.autolayout is set to True the output in the EPS file becomes blank. The file is produced and no errors are mentioned.
Code for reproduction
importmatplotlib.pyplotaspltplt.rc('text',usetex=True)plt.rcParams["figure.figsize"]= [3.4,2.47]plt.rcParams['figure.autolayout']=True[Ignoringcreationofdataforplots]plt.plot(t,d,label='electron bunch energy density')plt.savefig('test.eps')
Actual outcome
EPS file converted to PDF
Expected outcome
EPS file converted to PDF withplt.rcParams['figure.autolayout'] = False
and all else the same
Additional information
The bug appears when I change to autolayout = True. I noticed there was an earlier bug fix for a very similar scenario (#16898) which seems to fix for the case where figure.autolayout = False.
Operating system
HPE Cray Linux Environment
Matplotlib Version
3.5.1
Matplotlib Backend
module://matplotlib_inline.backend_inline
Python version
3.8.5
Jupyter version
3.2.9
Installation
pip