fix: initialize a_tex to prevent UnboundLocalError in PolarPlane (#4557)

This commit is contained in:
Rin 2026-02-02 11:09:50 +07:00 committed by GitHub
commit 2f38426ceb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3245,6 +3245,7 @@ class PolarPlane(Axes):
}
for i in a_values
]
a_tex = []
if self.azimuth_units == "PI radians" or self.azimuth_units == "TAU radians":
a_tex = [
self.get_radian_label(