@@ -761,7 +761,7 @@ def make_pen(color, width):
761761 pen = [make_pen (color , 1.5 )] * self .n_points
762762 if subset is not None :
763763 brush = [(QBrush (QColor (128 , 128 , 128 , 0 )),
764- QBrush (QColor (128 , 128 , 128 , self . alpha_value )))[s ]
764+ QBrush (QColor (128 , 128 , 128 , 255 )))[s ]
765765 for s in subset ]
766766 else :
767767 brush = [QBrush (QColor (128 , 128 , 128 , self .alpha_value ))] \
@@ -787,7 +787,7 @@ def make_pen(color, width):
787787 for col in self .pen_colors .tolist ()]
788788 if subset is not None :
789789 self .brush_colors [:, 3 ] = 0
790- self .brush_colors [subset , 3 ] = self . alpha_value
790+ self .brush_colors [subset , 3 ] = 255
791791 else :
792792 self .brush_colors [:, 3 ] = self .alpha_value
793793 pen = self .pen_colors
@@ -806,9 +806,10 @@ def make_pen(color, width):
806806 [make_pen (QColor (* col ).darker (self .DarkerValue ), 1.5 )
807807 for col in colors ])
808808 self .pen_colors = pens [c_data ]
809+ alpha = self .alpha_value if subset is None else 255
809810 self .brush_colors = np .array ([
810811 [QBrush (QColor (0 , 0 , 0 , 0 )),
811- QBrush (QColor (col [0 ], col [1 ], col [2 ], self . alpha_value ))]
812+ QBrush (QColor (col [0 ], col [1 ], col [2 ], alpha ))]
812813 for col in colors ])
813814 self .brush_colors = self .brush_colors [c_data ]
814815 if subset is not None :
0 commit comments