Skip to content

Commit d0bc9c0

Browse files
committed
Support scatter() string color lists (fix #316)
1 parent faf3813 commit d0bc9c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proplot/axes/plot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@ def _parse_color(self, x, y, c, *, apply_cycle=True, infer_rgb=False, **kwargs):
20702070
kwargs = self._parse_cycle(**kwargs)
20712071
else:
20722072
c = np.atleast_1d(c) # should only have effect on 'scatter' input
2073-
if infer_rgb and c.ndim == 2 and c.shape[1] in (3, 4):
2073+
if infer_rgb and (inputs._is_categorical(c) or c.ndim == 2 and c.shape[1] in (3, 4)): # noqa: E501
20742074
c = list(map(pcolors.to_hex, c)) # avoid iterating over columns
20752075
else:
20762076
kwargs = self._parse_cmap(x, y, c, plot_lines=True, default_discrete=False, **kwargs) # noqa: E501

0 commit comments

Comments
 (0)