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.
1 parent d3e1e78 commit c60f8b4Copy full SHA for c60f8b4
proplot/wrappers.py
@@ -1042,6 +1042,13 @@ def scatter_wrapper(
1042
markeredgecolor=markeredgecolor, markeredgecolors=markeredgecolors,
1043
)
1044
1045
+ # Fix 2D arguments but still support scatter(x_vector, y_2d) usage
1046
+ # NOTE: Since we are flattening vectors the coordinate metadata is meaningless,
1047
+ # so converting to ndarray and stripping metadata is no problem.
1048
+ # NOTE: numpy.ravel() preserves masked arrays
1049
+ if len(args) == 2 and all(np.asarray(arg).squeeze().ndim > 1 for arg in args):
1050
+ args = tuple(np.ravel(arg) for arg in args)
1051
+
1052
# Scale s array
1053
if np.iterable(s) and (smin is not None or smax is not None):
1054
smin_true, smax_true = min(s), max(s)
0 commit comments