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

Appearance settings

EPS + usetex is broken #17253

Copy link
Copy link
Closed
Closed
Copy link
@QuLogic

Description

@QuLogic
Issue body actions

Bug report

Bug summary

I was testing #131, and it produces an empty plot now. Removing the usetex rc change produces a working plot.

Code for reproduction

import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib import rc

rc('text', usetex=True)

g1, = plt.plot([1,2,3,4],[500,600,700,800])
g2, = plt.plot([1,2,3,4],[700,300,700,200])
g3, = plt.plot([1,2,3,4],[800,600,900,800])

plt.figlegend([g1,g2,g3],['test1','test2','test3'],'upper left')

plt.savefig('image.png')
plt.savefig('image.eps')

plt.show()

Bisect says that it broke at 200094d and #14833. cc @anntzer

And a diff shows that the media box is completely wrong:

-  <</Type/Page/MediaBox [0 0 460.8 345.6]                                  
+  <</Type/Page/MediaBox [0 0 5184 5184]                                   

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.