@@ -451,6 +451,8 @@ def __init__(self, uniform_space="CAM02-UCS",
451
451
min_Jp = 15 , max_Jp = 95 , xp = None , yp = None ):
452
452
from .bezierbuilder import BezierModel , BezierBuilder
453
453
454
+ self ._uniform_space = uniform_space
455
+
454
456
axes = _viscm_editor_axes ()
455
457
456
458
ax_btn_wireframe = plt .axes ([0.7 , 0.15 , 0.1 , 0.025 ])
@@ -523,7 +525,8 @@ def plot_3d_gamut(self, event):
523
525
fig , ax = plt .subplots (subplot_kw = dict (projection = '3d' ))
524
526
self .wireframe_view = WireframeView (ax ,
525
527
self .cmap_model ,
526
- self .highlight_point_model )
528
+ self .highlight_point_model ,
529
+ self ._uniform_space )
527
530
plt .show ()
528
531
529
532
def save_colormap (self , event ):
@@ -770,7 +773,7 @@ def _refresh(self):
770
773
771
774
772
775
class WireframeView (object ):
773
- def __init__ (self , ax , cmap_model , highlight_point_model ):
776
+ def __init__ (self , ax , cmap_model , highlight_point_model , uniform_space ):
774
777
self .ax = ax
775
778
self .cmap_model = cmap_model
776
779
self .highlight_point_model = highlight_point_model
@@ -782,7 +785,7 @@ def __init__(self, ax, cmap_model, highlight_point_model):
782
785
Jp , ap , bp = self .highlight_point_model .get_Jpapbp ()
783
786
self .marker = self .ax .plot ([Jp ], [ap ], [bp ], "y." , mew = 3 )[0 ]
784
787
785
- gamut_patch = sRGB_gamut_patch ()
788
+ gamut_patch = sRGB_gamut_patch (uniform_space )
786
789
# That function returns a patch where each face is colored to match
787
790
# the represented colors. For present purposes we want something
788
791
# less... colorful.
0 commit comments