Skip to content

Commit f382012

Browse files
committed
upd
1 parent 5f8ca00 commit f382012

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

circuitpython_uplot/scatter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,13 @@ def __init__(
7474
else:
7575
self._pointer = pointer
7676

77-
7877
self._radius = radius
7978
self._pointer_color = pointer_color
8079

8180
if isinstance(self._radius, list) and self._pointer != "circle":
82-
raise ValueError(f"Pointer paramater is {self._pointer}. Variable Radius are not accepted")
81+
raise ValueError(
82+
f"Pointer paramater is {self._pointer}. Variable Radius are not accepted"
83+
)
8384

8485
if rangex is None:
8586
xmin = np.min(x) - nudge_factor * (abs(np.max(x) - np.min(x)) / 10)

docs/examples.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ Example showing how to use different pointers
8181
:lines: 5-
8282
.. image:: ../docs/scatter_pointers.jpg
8383

84+
Scatter using different datasets
85+
----------------------------------
86+
87+
Example showing how to use different datasets
88+
89+
.. literalinclude:: ../examples/scatter.py
90+
:caption: examples/scatter.py
91+
:lines: 5-
92+
.. image:: ../docs/scatter_pointers.jpg
93+
94+
8495
Display_shapes Example
8596
-----------------------
8697

docs/quick_start.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,15 @@ The following snippet shows how to create a cartesian plot
117117
Tick spacing and numbers are selected by default. However it's possible to customize
118118
the following parameters:
119119

120-
.. py:function:: Plot.tick_params(tickx_height, ticky_height, tickcolor, tickgrid)
120+
.. py:function:: Plot.tick_params(tickx_height, ticky_height, tickcolor, tickgrid, showtext, decimal_points)
121121
122+
:parm bool showtick: displays the tick. Defaults to `True`
122123
:param int tickx_height: tickx_height in pixels
123124
:param int ticky_height: ticky_height in pixels
124125
:param int tickcolor: tickcolor in Hex format
125126
:param bool tickgrid: displays the tickgrid. Defaults to `False`
126127
:param bool showtext: displays the tick text. Defaults to `False`
127-
:param int decimal_points: number of decimal points to show. Defaults to `0`
128+
.. :param int decimal_points: number of decimal points to show. Defaults to `0`
128129
129130
.. code-block:: python
130131

0 commit comments

Comments
 (0)