Skip to content

Commit a39ec1e

Browse files
committed
plot name change
1 parent 0693e3c commit a39ec1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+148
-149
lines changed

circuitpython_uplot/cartesian.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""
1616
try:
1717
from typing import Optional, Union
18-
from circuitpython_uplot.plot import Uplot
18+
from circuitpython_uplot.plot import Plot
1919
except ImportError:
2020
pass
2121
from bitmaptools import draw_line, fill_region
@@ -33,7 +33,7 @@ class Cartesian:
3333

3434
def __init__(
3535
self,
36-
plot: Uplot,
36+
plot: Plot,
3737
x: Union[list, np.linspace, np.ndarray],
3838
y: Union[list, np.linspace, np.ndarray],
3939
rangex: Optional[list] = None,
@@ -45,7 +45,7 @@ def __init__(
4545
) -> None:
4646
"""
4747
48-
:param Uplot plot: Plot object for the scatter to be drawn
48+
:param Plot plot: Plot object for the scatter to be drawn
4949
:param list|ulab.numpy.linspace|ulab.numpy.ndarray x: x points coordinates
5050
:param list|ulab.numpy.linspace|ulab.numpy.ndarray y: y points coordinates
5151
:param list|None rangex: x range limits. Defaults to None

circuitpython_uplot/fillbetween.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""
1616
try:
1717
from typing import Optional, Union
18-
from circuitpython_uplot.plot import Uplot
18+
from circuitpython_uplot.plot import Plot
1919
except ImportError:
2020
pass
2121
from ulab import numpy as np
@@ -33,7 +33,7 @@ class Fillbetween:
3333

3434
def __init__(
3535
self,
36-
plot: Uplot,
36+
plot: Plot,
3737
x: Union[list, np.linspace, np.ndarray],
3838
y1: Union[list, np.linspace, np.ndarray],
3939
y2: Union[list, np.linspace, np.ndarray],
@@ -43,7 +43,7 @@ def __init__(
4343
nudge: bool = True,
4444
) -> None:
4545
"""
46-
:param Uplot plot: Plot object for the scatter to be drawn
46+
:param Plot plot: Plot object for the scatter to be drawn
4747
:param list|ulab.numpy.linspace|ulab.numpy.ndarray x: x points coordinates
4848
:param list|ulab.numpy.linspace|ulab.numpy.ndarray y1: y1 points coordinates
4949
:param list|ulab.numpy.linspace|ulab.numpy.ndarray y2: y2 points coordinates

circuitpython_uplot/logging.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""
1616
try:
1717
from typing import Union
18-
from circuitpython_uplot.plot import Uplot
18+
from circuitpython_uplot.plot import Plot
1919
except ImportError:
2020
pass
2121
from bitmaptools import draw_line, fill_region
@@ -32,7 +32,7 @@ class Logging:
3232

3333
def __init__(
3434
self,
35-
plot: Uplot,
35+
plot: Plot,
3636
x: Union[list, np.linspace, np.ndarray],
3737
y: Union[list, np.linspace, np.ndarray],
3838
rangex: list,
@@ -45,7 +45,7 @@ def __init__(
4545
) -> None:
4646
"""
4747
48-
:param Uplot plot: Plot object for the log to be drawn
48+
:param Plot plot: Plot object for the log to be drawn
4949
:param list|ulab.numpy.linspace|ulab.numpy.ndarray x: x points coordinates
5050
:param list|ulab.numpy.linspace|ulab.numpy.ndarray y: y points coordinates
5151
:param list|None rangex: x range limits. Defaults to None
@@ -140,10 +140,10 @@ def clear_plot(plot) -> None:
140140
0,
141141
)
142142

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:
144144
"""
145145
Draws points in the plot
146-
:param Uplot plot: plot object provided
146+
:param Plot plot: plot object provided
147147
:param list x: list of x values
148148
:param list y: list of y values
149149
: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
153153

154154
self.draw_new_lines(plot, x, y, fill)
155155

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:
157157
"""
158158
Draw the plot lines
159-
:param Uplot plot: plot object provided
159+
:param Plot plot: plot object provided
160160
:param list x: list of x values
161161
:param list y: list of y values
162162
:param bool fill: parameter to fill the plot graphic. Defaults to False

circuitpython_uplot/map.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
"""
1717
try:
18-
from circuitpython_uplot.plot import Uplot
18+
from circuitpython_uplot.plot import Plot
1919
except ImportError:
2020
pass
2121

@@ -34,14 +34,14 @@ class Map:
3434

3535
def __init__(
3636
self,
37-
plot: Uplot,
37+
plot: Plot,
3838
data_points: np.ndarray,
3939
initial_color: int,
4040
final_color: int,
4141
) -> None:
4242
"""
4343
44-
:param Uplot plot: Plot object for the scatter to be drawn
44+
:param Plot plot: Plot object for the scatter to be drawn
4545
:param np.array data_points: data points to create the color map
4646
:param int initial_color: initial color to create the color map
4747
:param int final_color: final color to create the color map

circuitpython_uplot/pie.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
1515
"""
1616
try:
17-
from circuitpython_uplot.plot import Uplot
17+
from circuitpython_uplot.plot import Plot
1818
except ImportError:
1919
pass
2020

@@ -32,11 +32,11 @@ class Pie:
3232
"""
3333

3434
def __init__(
35-
self, plot: Uplot, data: list, x: int = 0, y: int = 0, radius: int = 40
35+
self, plot: Plot, data: list, x: int = 0, y: int = 0, radius: int = 40
3636
) -> None:
3737
"""
3838
39-
:param Uplot plot: Plot object for the pie to be drawn
39+
:param Plot plot: Plot object for the pie to be drawn
4040
:param list data: data to make the pie
4141
:param int x: pie center x coordinate
4242
:param int y: pie center y coordinate

circuitpython_uplot/polar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""
1616
try:
1717
from typing import Optional, Union
18-
from circuitpython_uplot.plot import Uplot
18+
from circuitpython_uplot.plot import Plot
1919
except ImportError:
2020
pass
2121
from bitmaptools import draw_line, draw_circle
@@ -33,7 +33,7 @@ class Polar:
3333

3434
def __init__(
3535
self,
36-
plot: Uplot,
36+
plot: Plot,
3737
radius: Union[list, np.linspace, np.ndarray],
3838
theta: Union[list, np.linspace, np.ndarray],
3939
rangex: Optional[list] = None,
@@ -45,7 +45,7 @@ def __init__(
4545
) -> None:
4646
"""
4747
48-
:param Uplot plot: Plot object for the scatter to be drawn
48+
:param Plot plot: Plot object for the scatter to be drawn
4949
:param list|ulab.numpy.linspace|ulab.numpy.ndarray radius: radius points
5050
:param list|ulab.numpy.linspace|ulab.numpy.ndarray theta: theta points
5151
:param list|None rangex: x range limits. Defaults to None

circuitpython_uplot/scatter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"""
1717
try:
1818
from typing import Optional, Union
19-
from circuitpython_uplot.plot import Uplot
19+
from circuitpython_uplot.plot import Plot
2020
except ImportError:
2121
pass
2222

@@ -36,7 +36,7 @@ class Scatter:
3636

3737
def __init__(
3838
self,
39-
plot: Uplot,
39+
plot: Plot,
4040
x: Union[list, np.linspace, np.ndarray],
4141
y: Union[list, np.linspace, np.ndarray],
4242
rangex: Optional[list] = None,

circuitpython_uplot/shade.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""
1616
try:
1717
from typing import Optional, Union
18-
from circuitpython_uplot.plot import Uplot
18+
from circuitpython_uplot.plot import Plot
1919
except ImportError:
2020
pass
2121
from ulab import numpy as np
@@ -33,7 +33,7 @@ class shade:
3333

3434
def __init__(
3535
self,
36-
plot: Uplot,
36+
plot: Plot,
3737
x: Union[list, np.linspace, np.ndarray],
3838
y1: list,
3939
y2: list,
@@ -43,7 +43,7 @@ def __init__(
4343
nudge: bool = True,
4444
) -> None:
4545
"""
46-
:param Uplot plot: Plot object for the scatter to be drawn
46+
:param Plot plot: Plot object for the scatter to be drawn
4747
:param list|ulab.numpy.linspace|ulab.numpy.ndarray x: x points coordinates
4848
:param list y1: y1 points coordinates
4949
:param list y2: y2 points coordinates

circuitpython_uplot/svg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
1515
"""
1616
try:
17-
from circuitpython_uplot.plot import Uplot
17+
from circuitpython_uplot.plot import Plot
1818
except ImportError:
1919
pass
2020
from bitmaptools import draw_line
@@ -33,7 +33,7 @@ class to render svg images in the plot area
3333

3434
def __init__(
3535
self,
36-
plot: Uplot,
36+
plot: Plot,
3737
icon: dict,
3838
x: int,
3939
y: int,
@@ -42,7 +42,7 @@ def __init__(
4242
) -> None:
4343
"""
4444
45-
:param Uplot plot: Plot object for the log to be drawn
45+
:param Plot plot: Plot object for the log to be drawn
4646
:param dictionary icon: icon dictionary
4747
:param int x: x position for the svg image
4848
:param int y: y position for the svg image

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Uplot Library
22
==============
33

4-
.. automodule:: circuitpython_uplot.uplot
4+
.. automodule:: circuitpython_uplot.plot
55
:members:
66

77
.. automodule:: circuitpython_uplot.scatter

0 commit comments

Comments
 (0)