Skip to content

Commit 5b15d79

Browse files
committed
adding table example
1 parent 54f6b10 commit 5b15d79

File tree

8 files changed

+9305
-14
lines changed

8 files changed

+9305
-14
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,ubar,rx,ry,x0,y0,y1,x1,ulogging
83+
good-names=r,g,b,w,i,j,k,n,x,y,z,ex,ok,Run,_,cs,TVOC,ubar,rx,ry,x0,y0,y1,x1,ulogging,ufillbetween,ucartesian,y2,
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/ucartesian.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
__repo__ = "https://github.com/adafruit/CircuitPython_uplot.git"
2727

2828

29-
# pylint: disable=too-many-arguments, invalid-name, no-self-use, too-few-public-methods
30-
# pylint: disable=too-many-locals, too-many-branches
3129
class ucartesian:
3230
"""
3331
Class to draw cartesian plane

circuitpython_uplot/ufillbetween.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
__repo__ = "https://github.com/adafruit/CircuitPython_uplot.git"
2727

2828

29-
# pylint: disable=too-many-arguments, invalid-name, no-self-use, too-few-public-methods
30-
# pylint: disable=too-many-locals
3129
class ufillbetween:
3230
"""
3331
Class to draw a fillbetween graph

circuitpython_uplot/umap.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
__repo__ = "https://github.com/adafruit/CircuitPython_uplot.git"
2828

2929

30-
# pylint: disable=too-few-public-methods, invalid-name, duplicate-code, too-many-locals, too-many-arguments
31-
# pylint: disable=unused-variable
3230
class umap:
3331
"""
3432
Main class to display different graphics

circuitpython_uplot/upie.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
__repo__ = "https://github.com/adafruit/CircuitPython_uplot.git"
2727

2828

29-
# pylint: disable=too-many-arguments, invalid-name, no-self-use
3029
class upie:
3130
"""
3231
Class to draw pie
@@ -39,8 +38,8 @@ def __init__(
3938
4039
:param Uplot plot: Plot object for the upie to be drawn
4140
:param list data: data to make the pie
42-
:param x: pie center x coordinate
43-
:param y: pie center y coordinate
41+
:param int x: pie center x coordinate
42+
:param int y: pie center y coordinate
4443
:param int radius: pie radius
4544
4645
"""
@@ -74,10 +73,10 @@ def __init__(
7473
def get_points(self, x: int, y: int, radius: int, angle: float) -> None:
7574
"""
7675
77-
:param x: center x coordinate
78-
:param y: center y coordinate
79-
:param radius: pie radius in pixels
80-
:param angle: line angle
76+
:param int x: center x coordinate
77+
:param int y: center y coordinate
78+
:param int radius: pie radius in pixels
79+
:param flaot angle: line angle
8180
:return: None
8281
8382
"""

docs/examples.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,15 @@ This example shows how to redraw new_values in the same plot
240240
:caption: examples/uplot_logging_changing_values.py
241241
:lines: 5-
242242

243+
Logging with Table Example
244+
---------------------------------------
245+
246+
This example shows how to add a data table to the plot
247+
248+
.. literalinclude:: ../examples/uplot_logging_table.py
249+
:caption: examples/uplot_logging_table.py
250+
:lines: 10-
251+
243252

244253
SVG Images examples
245254
---------------------------

0 commit comments

Comments
 (0)