Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5a478 commit 916176aCopy full SHA for 916176a
‎proplot/axes/cartesian.py
@@ -779,9 +779,9 @@ def _update_locs(
779
if labelloc is not None:
780
axis.set_label_position(labelloc)
781
if offsetloc is not None:
782
- if x == 'y':
+ if hasattr(axis, 'set_offset_position'): # y axis (and future x axis?)
783
axis.set_offset_position(offsetloc)
784
- elif dependencies._version_mpl >= 3.3: # NOTE: uses ugly mpl 3.3+ kludge
+ elif x == 'x' and dependencies._version_mpl >= 3.3: # ugly mpl kludge
785
axis._tick_position = offsetloc
786
axis.offsetText.set_verticalalignment(REVERSE_SIDE[offsetloc])
787
0 commit comments