Skip to content

Commit 0f92ac5

Browse files
committed
BUG: fix a regression where tick direction wasn't conserved by Axis.clear()
1 parent 25b39d4 commit 0f92ac5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/axis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,8 @@ def _reset_major_tick_kw(self, keep_tick_and_label_visibility=False):
855855
*keep_tick_and_label_visibility*.
856856
"""
857857
backup = {name: value for name, value in self._major_tick_kw.items()
858-
if name in ['tick1On', 'tick2On', 'label1On', 'label2On']}
858+
if name in ['tick1On', 'tick2On', 'tickdir',
859+
'label1On', 'label2On']}
859860
self._major_tick_kw.clear()
860861
if keep_tick_and_label_visibility:
861862
self._major_tick_kw.update(backup)

0 commit comments

Comments
 (0)
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