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 02a5ce3 commit 1755c7bCopy full SHA for 1755c7b
proplot/wrappers.py
@@ -1171,9 +1171,14 @@ def scatter_wrapper(
1171
cmap = constructor.Colormap(cmap, **cmap_kw)
1172
1173
# Get normalizer and levels
1174
+ # NOTE: If the length of the c array !=
1175
ticks = None
1176
carray = np.atleast_1d(c)
- if np.issubdtype(carray.dtype, np.number) and len(carray) > 3:
1177
+ if (
1178
+ np.issubdtype(carray.dtype, np.number)
1179
+ and not (carray.ndim == 2 and carray.shape[1] in (3, 4))
1180
+ ):
1181
+ carray = carray.ravel()
1182
norm, cmap, _, ticks = _build_discrete_norm(
1183
carray, # sample data for getting suitable levels
1184
N=N, levels=levels, values=values,
0 commit comments