Skip to content

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

@neutrinoceros

Description

@neutrinoceros

Bug report

Bug summary

Ticks direction set with Axes.tick_params used to be persistent but is now erased by Axes.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, see yt-project/yt#3256
I was able to reproduce the change of behaviour with the following minimal script

import matplotlib.pyplot as plt

from matplotlib import __version__ as mplver

fig, 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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy