Skip to content

[Bug]: Spines clipped in ps backend with usetex=True saving as eps #23776

Closed as not planned
@oscargus

Description

@oscargus

Bug summary

When saving a wide eps with text.usetex=True, the spine is clipped, but no other artists.

Code for reproduction

import matplotlib.pyplot as plt
plt.rcParams['text.usetex']=True
plt.figure(figsize=(20, 4))
plt.plot([0, 1], [0, 1], 'b')
plt.savefig('clippedspine.eps')

Actual outcome

image

Expected outcome

image

Additional information

Expected output not using usetex.

Saving as ps stores using letter paper, so the whole paper is clipped.

The line is just there to illustrate that lines are not clipped as such (nor are texts).

It seems like the spine covers the same absolute width when changing figure width.

Operating system

CentOS

Matplotlib Version

3.6.0.dev3474+g8179d12.d20220830

Matplotlib Backend

No response

Python version

3.8.13

Jupyter version

No response

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions