We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df330c9 commit 5a5a754Copy full SHA for 5a5a754
1 file changed
ultraplot/axes/base.py
@@ -2889,10 +2889,10 @@ def _update_outer_abc_loc(self, loc):
2889
# Get the size of tick labels if they exist
2890
has_labels = True if axis.get_ticklabels() else False
2891
# Estimate label size; note it uses the raw text representation which can be misleading due to the latex processing
2892
- if has_labels:
+ if has_labels and axis.get_ticklabels():
2893
_offset = max(
2894
[
2895
- len(l.get_text()) + l.get_fontsize()
+ len(l.get_text()) * l.get_fontsize() * 0.6
2896
for l in axis.get_ticklabels()
2897
]
2898
)
0 commit comments