Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Regression: undocumented change of behaviour in mpl 3.4.2 with axis ticks direction #20219

Closed
@neutrinoceros

Description

@neutrinoceros

Bug report

Bug summary

Ticks direction set withAxes.tick_params used to be persistent but is now erased byAxes.cla().
Maybe this change is actually intended ? in any case I couldn't find a mention of it in your release notes so I'm considering it a bug for now.

Code for reproduction

I originally detected a regression in yt, seeyt-project/yt#3256
I was able to reproduce the change of behaviour with the following minimal script

importmatplotlib.pyplotaspltfrommatplotlibimport__version__asmplverfig,ax=plt.subplots()ax.tick_params(direction="in")ax.cla()fig.savefig(f"/tmp/mpl_{mplver}_regr.jpg")

Actual outcome

This is with matplotlib 3.4.2

mpl_3 4 2_regr

Expected outcome

This is with matplotlib 3.4.1
mpl_3 4 1_regr

Matplotlib version

  • Operating system: OSX
  • Matplotlib version (import matplotlib; print(matplotlib.__version__)): see above
  • Matplotlib backend (print(matplotlib.get_backend())): MaxOSX
  • Python version: 3.9

installed from pypi with pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp