Skip to content

Commit 320f2e6

Browse files
committed
CLN: longer code for clarity
1 parent db74be9 commit 320f2e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

larray/core/plot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ def _handle_x_y_axes(axes, x, y, subplots):
2020
label_axis = None
2121

2222
if np.isscalar(x) and x not in axes:
23-
label_axis, x_indices = axes._translate_axis_key(x)
24-
x = IGroup(x_indices, axis=label_axis)
23+
x_label_axis, x_indices = axes._translate_axis_key(x)
24+
x = IGroup(x_indices, axis=x_label_axis)
25+
label_axis = x_label_axis
2526

2627
if np.isscalar(y) and y not in axes:
2728
y_label_axis, y_indices = axes._translate_axis_key(y)

0 commit comments

Comments
 (0)