Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: Blank output EPS file when using latex and figure.autolayout = True #22840

Closed
@robintimmis

Description

@robintimmis

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

test.pdf

Expected outcome

EPS file converted to PDF withplt.rcParams['figure.autolayout'] = False and all else the same

test_false.pdf

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp