Skip to content

Commit ed60126

Browse files
committed
Fix axis_ticks_length for the x-axis
1 parent 0ba0109 commit ed60126

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/changelog.qmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ title: Changelog
2323

2424
if the `y` aesthetic is mapped to datetime column in another layer.
2525

26+
- Fixed bug for matplotlib>3.10 where the `axis_ticks_length` for the x-axis
27+
had no effect.
28+
2629
## v0.14.3
2730
(2024-11-26)
2831
[![](https://zenodo.org/badge/DOI/10.5281/zenodo.14224336.svg)](https://doi.org/10.5281/zenodo.14224336)

plotnine/themes/themeable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ class axis_ticks_major_x(MixinSequenceOfValues):
10371037
def apply_ax(self, ax: Axes):
10381038
super().apply_ax(ax)
10391039
params = ax.xaxis.get_tick_params(which="major")
1040-
if not params.get("left", False):
1040+
if not params.get("bottom", False):
10411041
return
10421042

10431043
tick_params = {}

0 commit comments

Comments
 (0)