Skip to content

EPS + usetex is broken #17253

@QuLogic

Description

@QuLogic

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy