@@ -255,7 +255,7 @@ def __init__(
255
255
self ._axesy_bitmap .fill (0 )
256
256
257
257
self ._plot_bitmap = displayio .Bitmap (self .width , self .height , 5 )
258
- self .clear_lines ()
258
+ self .clear_plot_lines ()
259
259
self ._screen_palette = displayio .Palette (6 )
260
260
self ._screen_palette .make_transparent (0 )
261
261
self ._screen_palette [1 ] = self ._tick_color
@@ -603,8 +603,8 @@ def update_pointer(self, x: int, y: int) -> None:
603
603
self ._pointer .x = self .plot_line_point [- 1 ][0 ]
604
604
self ._pointer .y = self .plot_line_point [- 1 ][1 ]
605
605
606
- def add_line (self , x : int , y : int ) -> None :
607
- """add_line function.
606
+ def add_plot_line (self , x : int , y : int ) -> None :
607
+ """add_plot_line function.
608
608
609
609
add line to the plane.
610
610
multiple calls create a line-plot graph.
@@ -626,8 +626,8 @@ def add_line(self, x: int, y: int) -> None:
626
626
1 ,
627
627
)
628
628
629
- def clear_lines (self , palette_index = 5 ):
630
- """clear_lines function.
629
+ def clear_plot_lines (self , palette_index = 5 ):
630
+ """clear_plot_lines function.
631
631
632
632
clear all added lines
633
633
(clear line-plot graph)
0 commit comments