Skip to content

EPS and usetex give blank output #16898

Closed
@TomJohnZ

Description

@TomJohnZ

Bug report

Bug summary
Saving EPS files with the usetex=True option gives a blank output.

Code for reproduction

import matplotlib as mpl
mpl.use('ps')
import matplotlib.pyplot as plt

mpl.rc('text', usetex=True)
fig, ax = plt.subplots()
fig.savefig('output.eps')

Actual outcome
output-200094d4-bad.pdf (converted from eps to pdf using epstopdf)

The EPS file appears to have the incorrect coordinates of the various elements.

Expected outcome

output-9e7a235-good.pdf

This worked in version 3.1.3, but stopped working in 3.2.0. Git bisect shows that 200094d introduced the issue.

Matplotlib version

  • Operating system: Linux 5.5.11-arch1-1
  • Matplotlib version: 3.2.1-1
  • Matplotlib backend: ps
  • Python version: 3.8.2-1

Matplotlib installed with sudo pacman -S python-matplotlib

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.backend: pstopic: text/usetex

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions