interactive-figure 0.3.4__py3-none-any.whl → 0.3.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of interactive-figure might be problematic. Click here for more details.
- interactive_figure/__about__.py +1 -1
- interactive_figure/interactive_figure.py +19 -13
- {interactive_figure-0.3.4.dist-info → interactive_figure-0.3.5.dist-info}/METADATA +4 -1
- interactive_figure-0.3.5.dist-info/RECORD +7 -0
- interactive_figure-0.3.4.dist-info/RECORD +0 -7
- {interactive_figure-0.3.4.dist-info → interactive_figure-0.3.5.dist-info}/WHEEL +0 -0
- {interactive_figure-0.3.4.dist-info → interactive_figure-0.3.5.dist-info}/licenses/LICENSE.txt +0 -0
interactive_figure/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.3.
|
|
1
|
+
__version__ = "0.3.5"
|
|
@@ -15,14 +15,14 @@ def create(aspect_ratio="auto", hide_toolbar=False, **kwargs):
|
|
|
15
15
|
Parameters
|
|
16
16
|
----------
|
|
17
17
|
aspect_ratio : str, optional
|
|
18
|
-
aspect ratio of the Axes,
|
|
18
|
+
aspect ratio of the Axes, default "auto".
|
|
19
19
|
hide_toolbar : bool, optional
|
|
20
|
-
whether to hide the toolbar,
|
|
20
|
+
whether to hide the toolbar, default False.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Remaining arguments will be sent to the figure upon creation.
|
|
23
23
|
|
|
24
24
|
Raises
|
|
25
|
-
|
|
25
|
+
----------
|
|
26
26
|
RuntimeError
|
|
27
27
|
if multiple interactive figures are created.
|
|
28
28
|
"""
|
|
@@ -62,6 +62,7 @@ def create(aspect_ratio="auto", hide_toolbar=False, **kwargs):
|
|
|
62
62
|
else:
|
|
63
63
|
raise RuntimeError("Error: you cannot create multiple interactive figures.")
|
|
64
64
|
|
|
65
|
+
|
|
65
66
|
def draw():
|
|
66
67
|
"""Draw contents of the figure."""
|
|
67
68
|
_check_exists()
|
|
@@ -75,10 +76,15 @@ def draw():
|
|
|
75
76
|
|
|
76
77
|
|
|
77
78
|
def clear(hide_labels=False, set_limits=True):
|
|
78
|
-
"""Reset contents and layout of the figure.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
"""Reset contents and layout of the figure.
|
|
80
|
+
|
|
81
|
+
Parameters
|
|
82
|
+
----------
|
|
83
|
+
set_limits : bool, optional
|
|
84
|
+
set the Axes limits to [0, 100].
|
|
85
|
+
hide_labels : bool, optional
|
|
86
|
+
remove all labels from the figure.
|
|
87
|
+
"""
|
|
82
88
|
_check_exists()
|
|
83
89
|
|
|
84
90
|
ax = _state.ax
|
|
@@ -172,7 +178,7 @@ def get_last_key_press():
|
|
|
172
178
|
Returns
|
|
173
179
|
-------
|
|
174
180
|
str | None
|
|
175
|
-
The last key that was pressed
|
|
181
|
+
The last key that was pressed.
|
|
176
182
|
"""
|
|
177
183
|
_check_exists()
|
|
178
184
|
|
|
@@ -190,7 +196,7 @@ def get_last_mouse_press():
|
|
|
190
196
|
Returns
|
|
191
197
|
-------
|
|
192
198
|
int | None
|
|
193
|
-
The identifier of the last mouse button that was pressed
|
|
199
|
+
The identifier of the last mouse button that was pressed.
|
|
194
200
|
"""
|
|
195
201
|
_check_exists()
|
|
196
202
|
|
|
@@ -208,7 +214,7 @@ def get_last_mouse_pos():
|
|
|
208
214
|
Returns
|
|
209
215
|
-------
|
|
210
216
|
(x: float, y: float) | (None, None)
|
|
211
|
-
The last registered mouse position after any interaction
|
|
217
|
+
The last registered mouse position after any interaction.
|
|
212
218
|
"""
|
|
213
219
|
_check_exists()
|
|
214
220
|
|
|
@@ -224,7 +230,7 @@ def wait(timeout):
|
|
|
224
230
|
Parameters
|
|
225
231
|
----------
|
|
226
232
|
timeout : float
|
|
227
|
-
Number of seconds to wait for
|
|
233
|
+
Number of seconds to wait for.
|
|
228
234
|
"""
|
|
229
235
|
_check_exists()
|
|
230
236
|
|
|
@@ -233,7 +239,7 @@ def wait(timeout):
|
|
|
233
239
|
_state_reset_press()
|
|
234
240
|
|
|
235
241
|
|
|
236
|
-
#
|
|
242
|
+
# HIDDEN METHODS
|
|
237
243
|
|
|
238
244
|
|
|
239
245
|
def _get_state():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: interactive-figure
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: Create interactive Matplotlib figures!
|
|
5
5
|
Project-URL: Documentation, https://teuncm.github.io/interactive-figure/autoapi/interactive_figure/interactive_figure/index.html
|
|
6
6
|
Project-URL: Issues, https://github.com/teuncm/interactive-figure/issues
|
|
@@ -63,6 +63,9 @@ hatch shell
|
|
|
63
63
|
hatch version fix
|
|
64
64
|
hatch build -c
|
|
65
65
|
./generate_docs.sh
|
|
66
|
+
|
|
67
|
+
# Publish
|
|
68
|
+
hatch publish
|
|
66
69
|
```
|
|
67
70
|
|
|
68
71
|
## Links
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interactive_figure/__about__.py,sha256=hu_23GWCWpKjdw97-0y_O7JlxUWN4apUKOL4q5xXd7Q,23
|
|
2
|
+
interactive_figure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
interactive_figure/interactive_figure.py,sha256=hvQX5OACBYoz5EK9Wd3aOZm6I79ia6PGg69CtkPl_Mo,8410
|
|
4
|
+
interactive_figure-0.3.5.dist-info/METADATA,sha256=WYQ6OrtTdjiUS3npBEhymGvE5Fc2Pc7PxLBPGCYr-4U,2438
|
|
5
|
+
interactive_figure-0.3.5.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
6
|
+
interactive_figure-0.3.5.dist-info/licenses/LICENSE.txt,sha256=R6IpPdPKA5nLHPKRXIhlFHLE59dMUtve0qeXhZPr0Hk,1043
|
|
7
|
+
interactive_figure-0.3.5.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interactive_figure/__about__.py,sha256=EVh84K2XkED4bsPB10qR4q6SCbIp-6LdYq5IuJweVoo,23
|
|
2
|
-
interactive_figure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
interactive_figure/interactive_figure.py,sha256=l3AWVe6oQePBCcv3kGb5qEV_qxHWiuZeXyrxd5OlZTk,8318
|
|
4
|
-
interactive_figure-0.3.4.dist-info/METADATA,sha256=Yx_G-2KYRrZ0IcVf1ZO1zewjlEZG66a02eVbOJJAQvQ,2413
|
|
5
|
-
interactive_figure-0.3.4.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
6
|
-
interactive_figure-0.3.4.dist-info/licenses/LICENSE.txt,sha256=R6IpPdPKA5nLHPKRXIhlFHLE59dMUtve0qeXhZPr0Hk,1043
|
|
7
|
-
interactive_figure-0.3.4.dist-info/RECORD,,
|
|
File without changes
|
{interactive_figure-0.3.4.dist-info → interactive_figure-0.3.5.dist-info}/licenses/LICENSE.txt
RENAMED
|
File without changes
|