Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 3, 2024
1 parent ec54b89 commit 920e8da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mplhep/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,9 @@ def iterable_not_string(arg):
# Loop over shared x axes to get xticks and xticklabels
xticks, xticklabels = np.array([]), []
shared_axes = ax.get_shared_x_axes().get_siblings(ax)
shared_axes = [_ax for _ax in shared_axes if _ax.get_position().x0 == ax.get_position().x0]
shared_axes = [
_ax for _ax in shared_axes if _ax.get_position().x0 == ax.get_position().x0
]
for _ax in shared_axes:
_xticks = _ax.get_xticks()
_xticklabels = [label.get_text() for label in _ax.get_xticklabels()]
Expand Down

0 comments on commit 920e8da

Please sign in to comment.