@@ -519,7 +519,7 @@ def stroke_rects(self, x, y, width, height=None):
519519
520520 self ._send_canvas_command (COMMANDS ['strokeRects' ], args , buffers )
521521
522- def fill_styled_rects (self , x , y , width , height , color , alpha ):
522+ def fill_styled_rects (self , x , y , width , height , color , alpha = 1 ):
523523 """Draw filled and styled rectangles of sizes ``(width, height)`` at the ``(x, y)`` positions
524524
525525 Where ``x``, ``y``, ``width`` and ``height`` arguments are NumPy arrays, lists or scalar values.
@@ -543,7 +543,7 @@ def fill_styled_rects(self, x, y, width, height, color, alpha):
543543 populate_args (alpha , args , buffers )
544544 self ._send_canvas_command (COMMANDS ['fillStyledRects' ], args , buffers )
545545
546- def stroke_styled_rects (self , x , y , width , height , color , alpha ):
546+ def stroke_styled_rects (self , x , y , width , height , color , alpha = 1 ):
547547 """Draw rectangular styled outlines of sizes ``(width, height)`` at the ``(x, y)`` positions.of sizes ``(width, height)``
548548
549549 Where ``x``, ``y``, ``width`` and ``height`` arguments are NumPy arrays, lists or scalar values.
@@ -653,7 +653,7 @@ def stroke_circles(self, x, y, radius):
653653
654654 self ._send_canvas_command (COMMANDS ['strokeCircles' ], args , buffers )
655655
656- def fill_styled_circles (self , x , y , radius , color , alpha ):
656+ def fill_styled_circles (self , x , y , radius , color , alpha = 1 ):
657657 """Draw a filled circles centered at ``(x, y)`` with a radius of ``radius``.
658658
659659 Where ``x``, ``y``, ``radius`` and ``alpha` are NumPy arrays, lists or scalar values.
@@ -669,7 +669,7 @@ def fill_styled_circles(self, x, y, radius, color, alpha):
669669 populate_args (alpha , args , buffers )
670670 self ._send_canvas_command (COMMANDS ['fillStyledCircles' ], args , buffers )
671671
672- def stroke_styled_circles (self , x , y , radius , color , alpha ):
672+ def stroke_styled_circles (self , x , y , radius , color , alpha = 1 ):
673673 """Draw filled circles centered at ``(x, y)`` with a radius of ``radius``.
674674
675675 Where ``x``, ``y``, ``radius`` and ``alpha`` are NumPy arrays, lists or scalar values.
@@ -685,7 +685,7 @@ def stroke_styled_circles(self, x, y, radius, color, alpha):
685685 populate_args (alpha , args , buffers )
686686 self ._send_canvas_command (COMMANDS ['strokeStyledCircles' ], args , buffers )
687687
688- def fill_styled_arcs (self , x , y , radius , start_angle , end_angle , color , alpha , anticlockwise = False ):
688+ def fill_styled_arcs (self , x , y , radius , start_angle , end_angle , color , alpha = 1 , anticlockwise = False ):
689689 """Draw filled and styled arcs centered at ``(x, y)`` with a radius of ``radius``.
690690
691691 Where ``x``, ``y``, ``radius`` and other arguments are NumPy arrays, lists or scalar values.
@@ -704,7 +704,7 @@ def fill_styled_arcs(self, x, y, radius, start_angle, end_angle, color, alpha, a
704704
705705 self ._send_canvas_command (COMMANDS ['fillStyledArcs' ], args , buffers )
706706
707- def stroke_styled_arcs (self , x , y , radius , start_angle , end_angle , color , alpha , anticlockwise = False ):
707+ def stroke_styled_arcs (self , x , y , radius , start_angle , end_angle , color , alpha = 1 , anticlockwise = False ):
708708 """Draw an styled arc outlines centered at ``(x, y)`` with a radius of ``radius``.
709709
710710 Where ``x``, ``y``, ``radius`` and other arguments are NumPy arrays, lists or scalar values.
@@ -791,7 +791,7 @@ def stroke_polygons(self, points, points_per_polygon=None):
791791 """
792792 self ._draw_polygons_or_linesegments ('strokePolygons' , points , None , None , points_per_polygon , False , 3 , "polygon" )
793793
794- def fill_styled_polygons (self , points , color , alpha , points_per_polygon = None ):
794+ def fill_styled_polygons (self , points , color , alpha = 1 , points_per_polygon = None ):
795795 """" Draw many filled polygons at once:
796796
797797 Args:
@@ -821,7 +821,7 @@ def fill_styled_polygons(self, points, color, alpha, points_per_polygon=None):
821821 """
822822 self ._draw_polygons_or_linesegments ('fillStyledPolygons' , points , color , alpha , points_per_polygon , True , 3 , "polygon" )
823823
824- def stroke_styled_polygons (self , points , color , alpha , points_per_polygon = None ):
824+ def stroke_styled_polygons (self , points , color , alpha = 1 , points_per_polygon = None ):
825825 """" Draw many stroked polygons at once:
826826
827827 Args:
@@ -865,7 +865,7 @@ def stroke_lines(self, points):
865865
866866 self ._send_canvas_command (COMMANDS ['strokeLines' ], args , buffers )
867867
868- def stroke_styled_line_segments (self , points , color , alpha , points_per_line_segment = None ):
868+ def stroke_styled_line_segments (self , points , color , alpha = 1 , points_per_line_segment = None ):
869869 """ Draw many line segments at once:
870870
871871 Args:
0 commit comments