@@ -183,6 +183,7 @@ def __init__(
183183 nudge_x : int = 0 ,
184184 nudge_y : int = 0 ,
185185 verbose : bool = False ,
186+ fill_area : bool = False ,
186187 ** kwargs ,
187188 ) -> None :
188189
@@ -318,6 +319,8 @@ def __init__(
318319 self ._circle_palette = None
319320 self .plot_line_point = None
320321
322+ self ._fill_area = False
323+
321324 @staticmethod
322325 def _get_font_height (font , scale : int ) -> Tuple [int , int ]:
323326 if hasattr (font , "get_bounding_box" ):
@@ -503,6 +506,7 @@ def _add_point(self, x: int, y: int) -> None:
503506 :return: None
504507 rtype: None
505508 """
509+ print ("X: {}, Y: {}" .format (x , y ))
506510 local_x , local_y = self ._calc_local_xy (x , y )
507511 if self ._verbose :
508512 print ("" )
@@ -603,6 +607,14 @@ def update_pointer(self, x: int, y: int) -> None:
603607 self ._pointer .x = self .plot_line_point [- 1 ][0 ]
604608 self ._pointer .y = self .plot_line_point [- 1 ][1 ]
605609
610+ @property
611+ def fill_area (self ) -> bool :
612+ return self ._fill_area
613+
614+ @fill_area .setter
615+ def fill_area_under (self , setting : bool ) -> None :
616+ self ._fill_area = setting
617+
606618 def add_plot_line (self , x : int , y : int ) -> None :
607619 """add_plot_line function.
608620
@@ -612,10 +624,10 @@ def add_plot_line(self, x: int, y: int) -> None:
612624 :param int x: ``x`` coordinate in the local plane
613625 :param int y: ``y`` coordinate in the local plane
614626 :return: None
615-
616- rtype: None
617627 """
618628 self ._add_point (x , y )
629+ print ("CURRENT POINTS:" )
630+ print (self .plot_line_point )
619631 if len (self .plot_line_point ) > 1 :
620632 bitmaptools .draw_line (
621633 self ._plot_bitmap ,
0 commit comments