We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c27753 + c60f8b4 commit 11b4302Copy full SHA for 11b4302
proplot/wrappers.py
@@ -1049,6 +1049,13 @@ def scatter_wrapper(
1049
markeredgecolor=markeredgecolor, markeredgecolors=markeredgecolors,
1050
)
1051
1052
+ # Fix 2D arguments but still support scatter(x_vector, y_2d) usage
1053
+ # NOTE: Since we are flattening vectors the coordinate metadata is meaningless,
1054
+ # so converting to ndarray and stripping metadata is no problem.
1055
+ # NOTE: numpy.ravel() preserves masked arrays
1056
+ if len(args) == 2 and all(np.asarray(arg).squeeze().ndim > 1 for arg in args):
1057
+ args = tuple(np.ravel(arg) for arg in args)
1058
+
1059
# Scale s array
1060
if np.iterable(s) and (smin is not None or smax is not None):
1061
smin_true, smax_true = min(s), max(s)
0 commit comments