Skip to content

Commit ca843ca

Browse files
committed
Fix standardize_2d bug with pandas dataframes
1 parent 3e3f45b commit ca843ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proplot/wrappers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,8 @@ def standardize_2d(self, func, *args, order='C', globe=False, **kwargs):
532532
x = Z.coords[Z.dims[idx]]
533533
y = Z.coords[Z.dims[idy]]
534534
else: # DataFrame; never Series or Index because these are 1d
535-
x = Z.index
536-
y = Z.columns
535+
y = Z.index
536+
x = Z.columns
537537

538538
# Check coordinates
539539
x, y = _to_array(x), _to_array(y)

0 commit comments

Comments
 (0)