Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bounding box no longer works for EPS files if usetex=True #85

Closed
@astrofrog

Description

@astrofrog

The following code no longer sets the bounding box correctly:

import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import numpy as np

mpl.rc('text', usetex=True)

fig = plt.figure()
ax = fig.add_axes([0.1,0.1,0.3,0.3])
fig.savefig('test.eps', bbox_inches='tight')

This stopped working since commit 32f64b0, specifically the changes by @efiring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions