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

Skip to content

Axes3D: tick label positioning logic changed in 1.5.0 #5447

Closed
@fjarri

Description

@fjarri

Consider the following code:

import matplotlib
matplotlib.use('Agg')
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt

fig = plt.figure(figsize=(4, 3))
ax = fig.add_subplot(111, projection='3d')
X, Y, Z = axes3d.get_test_data(0.05)
matplotlib.rcParams['font.size'] = 7
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)

fig.savefig('t_' + matplotlib.__version__ + '.png')

In 1.4.3 it produced the following:

t_1 4 3

But in 1.5.0 I get:

t_1 5 0

Notice how the tick labels are disproportionately far from the axes. Is it some parameter in rcParams that I can revert to 1.4.3 value, or a bug?

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