@@ -451,6 +451,8 @@ def __init__(self, uniform_space="CAM02-UCS",
451451 min_Jp = 15 , max_Jp = 95 , xp = None , yp = None ):
452452 from .bezierbuilder import BezierModel , BezierBuilder
453453
454+ self ._uniform_space = uniform_space
455+
454456 axes = _viscm_editor_axes ()
455457
456458 ax_btn_wireframe = plt .axes ([0.7 , 0.15 , 0.1 , 0.025 ])
@@ -523,7 +525,8 @@ def plot_3d_gamut(self, event):
523525 fig , ax = plt .subplots (subplot_kw = dict (projection = '3d' ))
524526 self .wireframe_view = WireframeView (ax ,
525527 self .cmap_model ,
526- self .highlight_point_model )
528+ self .highlight_point_model ,
529+ self ._uniform_space )
527530 plt .show ()
528531
529532 def save_colormap (self , event ):
@@ -770,7 +773,7 @@ def _refresh(self):
770773
771774
772775class WireframeView (object ):
773- def __init__ (self , ax , cmap_model , highlight_point_model ):
776+ def __init__ (self , ax , cmap_model , highlight_point_model , uniform_space ):
774777 self .ax = ax
775778 self .cmap_model = cmap_model
776779 self .highlight_point_model = highlight_point_model
@@ -782,7 +785,7 @@ def __init__(self, ax, cmap_model, highlight_point_model):
782785 Jp , ap , bp = self .highlight_point_model .get_Jpapbp ()
783786 self .marker = self .ax .plot ([Jp ], [ap ], [bp ], "y." , mew = 3 )[0 ]
784787
785- gamut_patch = sRGB_gamut_patch ()
788+ gamut_patch = sRGB_gamut_patch (uniform_space )
786789 # That function returns a patch where each face is colored to match
787790 # the represented colors. For present purposes we want something
788791 # less... colorful.
0 commit comments