Skip to content

Commit

Permalink
Fix axis_ticks_length for the x-axis
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Dec 16, 2024
1 parent 0ba0109 commit ed60126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/changelog.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ title: Changelog

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

- Fixed bug for matplotlib>3.10 where the `axis_ticks_length` for the x-axis
had no effect.

## v0.14.3
(2024-11-26)
[![](https://zenodo.org/badge/DOI/10.5281/zenodo.14224336.svg)](https://doi.org/10.5281/zenodo.14224336)
Expand Down
2 changes: 1 addition & 1 deletion plotnine/themes/themeable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ class axis_ticks_major_x(MixinSequenceOfValues):
def apply_ax(self, ax: Axes):
super().apply_ax(ax)
params = ax.xaxis.get_tick_params(which="major")
if not params.get("left", False):
if not params.get("bottom", False):
return

tick_params = {}
Expand Down

0 comments on commit ed60126

Please sign in to comment.