Skip to content

Commit e633c29

Browse files
committed
updating docs
1 parent 14296fc commit e633c29

File tree

5 files changed

+255
-120
lines changed

5 files changed

+255
-120
lines changed

circuitpython_uplot/cartesian.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def __init__(
4242
line_style: Optional[str] = None,
4343
ticksx: Union[np.array, list] = None,
4444
ticksy: Union[np.array, list] = None,
45-
tick_pos: bool = False,
4645
fill: bool = False,
4746
nudge: bool = True,
4847
logging: bool = False,
@@ -58,7 +57,6 @@ def __init__(
5857
:param str|None line_style: line style. Defaults to None
5958
:param np.array|list ticksx: X axis ticks values
6059
:param np.array|list ticksy: Y axis ticks values
61-
:param bool tick_pos: indicates ticks position. True for below the axes.
6260
:param bool fill: Show the filling. Defaults to `False`
6361
:param bool nudge: moves the graph a little for better displaying. Defaults to `True`
6462
:param bool logging: used to change the logic of the cartesian to work as a logger
@@ -68,13 +66,6 @@ def __init__(
6866
self.ticksx = ticksx
6967
self.ticksy = ticksy
7068

71-
if tick_pos:
72-
self._tickposx = plot._tickheightx
73-
self._tickposy = plot._tickheighty
74-
else:
75-
self._tickposx = 0
76-
self._tickposy = 0
77-
7869
if line_color is not None:
7970
plot._plot_palette[plot._index_colorused] = line_color
8071

@@ -193,3 +184,14 @@ def _plot_line(plot, index, xnorm, ynorm):
193184
ynorm[index + 1],
194185
plot._index_colorused,
195186
)
187+
188+
189+
class LineStyle:
190+
"""
191+
Line style class
192+
"""
193+
194+
SOLID = "-"
195+
DASHED = "- -"
196+
DASH_DOT = "-.-"
197+
DOTTED = "."

docs/cartesian_fill.jpg

16.6 KB
Loading

0 commit comments

Comments
 (0)