Skip to content

Commit 0693e3c

Browse files
committed
cartesian name change
1 parent 8fc78d5 commit 0693e3c

Some content is hidden

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

48 files changed

+99
-99
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class-rgx=[A-Z_][a-zA-Z0-9_]+$
8080
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
8181
docstring-min-length=-1
8282
function-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
83-
good-names=r,g,b,w,i,j,k,n,x,y,z,ex,ok,Run,_,cs,TVOC,bar,rx,ry,x0,y0,y1,x1,logging,fillbetween,ucartesian,y2,map,pie,shade
83+
good-names=r,g,b,w,i,j,k,n,x,y,z,ex,ok,Run,_,cs,TVOC,bar,rx,ry,x0,y0,y1,x1,logging,fillbetween,cartesian,y2,map,pie,shade
8484
include-naming-hint=no
8585
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
8686
method-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$

circuitpython_uplot/bar.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""
1616

1717
try:
18-
from circuitpython_uplot.uplot import Uplot
18+
from circuitpython_uplot.plot import Plot
1919
except ImportError:
2020
pass
2121
from math import sin, cos, ceil
@@ -37,7 +37,7 @@ class Bar:
3737

3838
def __init__(
3939
self,
40-
plot: Uplot,
40+
plot: Plot,
4141
x: list,
4242
y: list,
4343
color: int = 0xFFFFFF,
@@ -49,7 +49,7 @@ def __init__(
4949
max_value=None,
5050
) -> None:
5151
"""
52-
:param Uplot plot: Plot object for the scatter to be drawn
52+
:param Plot plot: Plot object for the scatter to be drawn
5353
:param list x: x data
5454
:param list y: y data
5555
:param int color: boxes color. Defaults to const:``0xFFFFFF``
@@ -233,7 +233,7 @@ def _create_projections(self, xstart: int, indice: int, color_lenght: int):
233233
)
234234

235235
def _draw_rectangle(
236-
self, plot: Uplot, x: int, y: int, width: int, height: int, color: int
236+
self, plot: Plot, x: int, y: int, width: int, height: int, color: int
237237
) -> None:
238238
"""
239239
Helper function to draw bins rectangles

circuitpython_uplot/ucartesian.py renamed to circuitpython_uplot/cartesian.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
"""
66
7-
`ucartesian`
7+
`cartesian`
88
================================================================================
99
1010
CircuitPython cartesian graph
@@ -15,7 +15,7 @@
1515
"""
1616
try:
1717
from typing import Optional, Union
18-
from circuitpython_uplot.uplot import Uplot
18+
from circuitpython_uplot.plot import Uplot
1919
except ImportError:
2020
pass
2121
from bitmaptools import draw_line, fill_region
@@ -26,7 +26,7 @@
2626
__repo__ = "https://github.com/adafruit/CircuitPython_uplot.git"
2727

2828

29-
class ucartesian:
29+
class Cartesian:
3030
"""
3131
Class to draw cartesian plane
3232
"""

circuitpython_uplot/fillbetween.py

Lines changed: 1 addition & 1 deletion
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.uplot import Uplot
18+
from circuitpython_uplot.plot import Uplot
1919
except ImportError:
2020
pass
2121
from ulab import numpy as np

circuitpython_uplot/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""
1616
try:
1717
from typing import Union
18-
from circuitpython_uplot.uplot import Uplot
18+
from circuitpython_uplot.plot import Uplot
1919
except ImportError:
2020
pass
2121
from bitmaptools import draw_line, fill_region

circuitpython_uplot/map.py

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

circuitpython_uplot/pie.py

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

circuitpython_uplot/uplot.py renamed to circuitpython_uplot/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
"""
66
7-
`uplot`
7+
`plot`
88
================================================================================
99
1010
CircuitPython Plot Class
@@ -41,7 +41,7 @@
4141
__repo__ = "https://github.com/jposada202020/CircuitPython_uplot.git"
4242

4343

44-
class Uplot(displayio.Group):
44+
class Plot(displayio.Group):
4545
"""
4646
Canvas Class to add different elements to the screen.
4747
The origin point set by ``x`` and ``y`` properties

circuitpython_uplot/polar.py

Lines changed: 1 addition & 1 deletion
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.uplot import Uplot
18+
from circuitpython_uplot.plot import Uplot
1919
except ImportError:
2020
pass
2121
from bitmaptools import draw_line, draw_circle

circuitpython_uplot/scatter.py

Lines changed: 1 addition & 1 deletion
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.uplot import Uplot
19+
from circuitpython_uplot.plot import Uplot
2020
except ImportError:
2121
pass
2222

0 commit comments

Comments
 (0)