From 6e522e6bd83f1e65bbee9ca256162c26b2833ae5 Mon Sep 17 00:00:00 2001 From: Johnnie Gray Date: Thu, 15 Feb 2024 17:49:40 -0800 Subject: [PATCH] schematic: fix color mod_sat --- quimb/schematic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quimb/schematic.py b/quimb/schematic.py index 4cb2d0b8..b8b8726e 100644 --- a/quimb/schematic.py +++ b/quimb/schematic.py @@ -1190,8 +1190,8 @@ def mod_sat(c, mod=None, alpha=None): if mod is None: return r, g, b, alpha - h, s, v = mpl.rgb_to_hsv((r, g, b)) - return (*mpl.hsv_to_rgb((h, mod * s, v)), alpha) + h, s, v = mpl.colors.rgb_to_hsv((r, g, b)) + return (*mpl.colors.hsv_to_rgb((h, mod * s, v)), alpha) def auto_colors(nc, alpha=None, default_sequence=False):