@@ -183,6 +183,7 @@ def __init__(
183
183
nudge_x : int = 0 ,
184
184
nudge_y : int = 0 ,
185
185
verbose : bool = False ,
186
+ fill_area : bool = False ,
186
187
** kwargs ,
187
188
) -> None :
188
189
@@ -318,6 +319,8 @@ def __init__(
318
319
self ._circle_palette = None
319
320
self .plot_line_point = None
320
321
322
+ self ._fill_area = False
323
+
321
324
@staticmethod
322
325
def _get_font_height (font , scale : int ) -> Tuple [int , int ]:
323
326
if hasattr (font , "get_bounding_box" ):
@@ -503,6 +506,7 @@ def _add_point(self, x: int, y: int) -> None:
503
506
:return: None
504
507
rtype: None
505
508
"""
509
+ print ("X: {}, Y: {}" .format (x , y ))
506
510
local_x , local_y = self ._calc_local_xy (x , y )
507
511
if self ._verbose :
508
512
print ("" )
@@ -603,6 +607,14 @@ def update_pointer(self, x: int, y: int) -> None:
603
607
self ._pointer .x = self .plot_line_point [- 1 ][0 ]
604
608
self ._pointer .y = self .plot_line_point [- 1 ][1 ]
605
609
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
+
606
618
def add_plot_line (self , x : int , y : int ) -> None :
607
619
"""add_plot_line function.
608
620
@@ -612,10 +624,10 @@ def add_plot_line(self, x: int, y: int) -> None:
612
624
:param int x: ``x`` coordinate in the local plane
613
625
:param int y: ``y`` coordinate in the local plane
614
626
:return: None
615
-
616
- rtype: None
617
627
"""
618
628
self ._add_point (x , y )
629
+ print ("CURRENT POINTS:" )
630
+ print (self .plot_line_point )
619
631
if len (self .plot_line_point ) > 1 :
620
632
bitmaptools .draw_line (
621
633
self ._plot_bitmap ,
0 commit comments