Skip to content

[Bug]: Font always embedded in (e)ps when text.usetex = True #23253

Open
@oscargus

Description

@oscargus

Bug summary

It seems like the font is always embedded in (e)ps-files if usetex is used (for example from the rcparams file).

Code for reproduction

import matplotlib as mpl
import matplotlib.pyplot as plt

mpl.rcParams['text.usetex']=True
fig, ax = plt.subplots()
ax.set_axis_off()
fig.savefig('empty.ps')

Actual outcome

A 161 kB empty ps-file.

Expected outcome

No font embedded if text is not used. (No need to do the LaTeX-step?)

Additional information

No response

Operating system

No response

Matplotlib Version

3.6.0.dev2700+gee7c4a079e.d20220611

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

from source (.tar.gz)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions