We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1510047 commit d29fa0eCopy full SHA for d29fa0e
1 file changed
ultraplot/axes/base.py
@@ -3063,13 +3063,13 @@ def _update_title_position(self, renderer):
3063
ha = aobj.get_ha()
3064
3065
# Get dimensions of non-empty elements
3066
- if atext:
+ if atext and aobj.get_figure() is not None:
3067
awidth = (
3068
aobj.get_window_extent(renderer)
3069
.transformed(self.transAxes.inverted())
3070
.width
3071
)
3072
- if ttext:
+ if ttext and tobj.get_figure() is not None:
3073
twidth = (
3074
tobj.get_window_extent(renderer)
3075
0 commit comments