Skip to content

Commit a5a4f2c

Browse files
dstansbyQuLogic
andauthored
Fix logic line break
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent c432940 commit a5a4f2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2581,8 +2581,8 @@ def _process_unit_info(self, datasets=None, kwargs=None, *, convert=True):
25812581
raise ValueError(f"Invalid axis name: {axis_name!r}") from None
25822582
# Update from data if axis is already set but no unit is set yet.
25832583
if (axis is not None and
2584-
data is not None and not
2585-
axis._have_units_and_converter()):
2584+
data is not None and
2585+
not axis._have_units_and_converter()):
25862586
axis.update_units(data)
25872587
for axis_name, axis in axis_map.items():
25882588
# Return if no axis is set.

0 commit comments

Comments
 (0)