3
3
#
4
4
# SPDX-License-Identifier: MIT
5
5
"""
6
- `boxplot `
6
+ `uboxplot `
7
7
================================================================================
8
8
9
9
Calculates boxplot and creates its graphical representation
38
38
__version__ = "0.0.0+auto.0"
39
39
__repo__ = "https://github.com/jposada202020/CircuitPython_boxplot.git"
40
40
41
+
41
42
# pylint: disable=too-many-instance-attributes, too-many-arguments, invalid-name
42
43
class Boxplot (displayio .TileGrid ):
43
44
"""A BoxPlot TileGrid. The origin is set using ``x`` and ``y``.
@@ -53,15 +54,14 @@ class Boxplot(displayio.TileGrid):
53
54
:param int fill_color: background color to use defaults to black (0x000000)
54
55
:param int line_color: background color to use defaults to white (0xFFFFFF)
55
56
56
-
57
- **Quickstart: Importing and using Boxplot**
57
+ **Quickstart: Importing and using UBoxplot**
58
58
59
59
Here is one way of importing the `Boxplot` class so you can use it as
60
60
the name ``Boxplot``:
61
61
62
62
.. code-block:: python
63
63
64
- from boxplot import Boxplot
64
+ from uboxplot import Boxplot
65
65
import displayio
66
66
67
67
Now you can create a boxplot at pixel position x=20, y=30 using:
@@ -82,7 +82,7 @@ class Boxplot(displayio.TileGrid):
82
82
83
83
**Summary: Boxplot Features and input variables**
84
84
85
- The `boxplot ` TileGrid has some options for controlling its position, visible appearance,
85
+ The `uboxplot ` TileGrid has some options for controlling its position, visible appearance,
86
86
through a collection of input variables:
87
87
88
88
- **position**: ``x``, ``y``
@@ -91,7 +91,6 @@ class Boxplot(displayio.TileGrid):
91
91
92
92
- **color**: ``background_color``, ``fill_color``, ``line_color``
93
93
94
-
95
94
- **range**: ``xrange`` and ``yrange`` This is the range in absolute units.
96
95
For example, when using (20-90), the X axis will start at 20 finishing at 90.
97
96
However, the height of the graph is given by the height parameter. The scale
0 commit comments