Skip to content

Commit 9cad490

Browse files
committed
Add 'order' support
1 parent ca843ca commit 9cad490

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

proplot/wrappers.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,12 @@ 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-
y = Z.index
536-
x = Z.columns
535+
if order == 'C':
536+
x = Z.columns
537+
y = Z.index
538+
else:
539+
x = Z.index
540+
y = Z.columns
537541

538542
# Check coordinates
539543
x, y = _to_array(x), _to_array(y)

0 commit comments

Comments
 (0)