Skip to content

Commit 59576c3

Browse files
authored
update logic (#315)
1 parent 644e1d0 commit 59576c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ultraplot/axes/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ def _parse_color(self, x, y, c, *, apply_cycle=True, infer_rgb=False, **kwargs):
25092509
# functions and helper functions.
25102510
parsers = (self._parse_cmap, *self._level_parsers)
25112511
if c is None or mcolors.is_color_like(c):
2512-
if infer_rgb and c is not None and c != "none":
2512+
if infer_rgb and c is not None and (isinstance(c, str) and c != "none"):
25132513
c = pcolors.to_hex(c) # avoid scatter() ambiguous color warning
25142514
if apply_cycle: # False for scatter() so we can wait to get correct 'N'
25152515
kwargs = self._parse_cycle(**kwargs)

0 commit comments

Comments
 (0)