15
15
"""
16
16
try :
17
17
from typing import Union
18
- from circuitpython_uplot .plot import Uplot
18
+ from circuitpython_uplot .plot import Plot
19
19
except ImportError :
20
20
pass
21
21
from bitmaptools import draw_line , fill_region
@@ -32,7 +32,7 @@ class Logging:
32
32
33
33
def __init__ (
34
34
self ,
35
- plot : Uplot ,
35
+ plot : Plot ,
36
36
x : Union [list , np .linspace , np .ndarray ],
37
37
y : Union [list , np .linspace , np .ndarray ],
38
38
rangex : list ,
@@ -45,7 +45,7 @@ def __init__(
45
45
) -> None :
46
46
"""
47
47
48
- :param Uplot plot: Plot object for the log to be drawn
48
+ :param Plot plot: Plot object for the log to be drawn
49
49
:param list|ulab.numpy.linspace|ulab.numpy.ndarray x: x points coordinates
50
50
:param list|ulab.numpy.linspace|ulab.numpy.ndarray y: y points coordinates
51
51
:param list|None rangex: x range limits. Defaults to None
@@ -140,10 +140,10 @@ def clear_plot(plot) -> None:
140
140
0 ,
141
141
)
142
142
143
- def draw_points (self , plot : Uplot , x : list , y : list , fill : bool = False ) -> None :
143
+ def draw_points (self , plot : Plot , x : list , y : list , fill : bool = False ) -> None :
144
144
"""
145
145
Draws points in the plot
146
- :param Uplot plot: plot object provided
146
+ :param Plot plot: plot object provided
147
147
:param list x: list of x values
148
148
:param list y: list of y values
149
149
:param bool fill: parameter to fill the plot graphic. Defaults to False
@@ -153,10 +153,10 @@ def draw_points(self, plot: Uplot, x: list, y: list, fill: bool = False) -> None
153
153
154
154
self .draw_new_lines (plot , x , y , fill )
155
155
156
- def draw_new_lines (self , plot : Uplot , x : list , y : list , fill : bool = False ) -> None :
156
+ def draw_new_lines (self , plot : Plot , x : list , y : list , fill : bool = False ) -> None :
157
157
"""
158
158
Draw the plot lines
159
- :param Uplot plot: plot object provided
159
+ :param Plot plot: plot object provided
160
160
:param list x: list of x values
161
161
:param list y: list of y values
162
162
:param bool fill: parameter to fill the plot graphic. Defaults to False
0 commit comments