interactive-figure 0.2.2__tar.gz → 0.3.1__tar.gz
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-0.2.2 → interactive_figure-0.3.1}/PKG-INFO +1 -1
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/demo/press.py +2 -2
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/demo/reaction_time.py +1 -1
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/demo/usage.py +1 -1
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/.doctrees/autoapi/interactive_figure/interactive_figure/index.doctree +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/.doctrees/environment.pickle +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_sources/autoapi/interactive_figure/interactive_figure/index.rst.txt +4 -4
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/autoapi/interactive_figure/interactive_figure/index.html +6 -6
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/genindex.html +2 -2
- interactive_figure-0.3.1/docs/objects.inv +7 -0
- interactive_figure-0.3.1/docs/searchindex.js +1 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/pyproject.toml +1 -7
- interactive_figure-0.3.1/src/interactive_figure/__about__.py +1 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/src/interactive_figure/interactive_figure.py +2 -2
- interactive_figure-0.2.2/docs/objects.inv +0 -0
- interactive_figure-0.2.2/docs/searchindex.js +0 -1
- interactive_figure-0.2.2/src/interactive_figure/__about__.py +0 -1
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/.gitignore +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/LICENSE.txt +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/README.md +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/.buildinfo +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/.doctrees/autoapi/index.doctree +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/.doctrees/autoapi/interactive_figure/__about__/index.doctree +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/.doctrees/autoapi/interactive_figure/index.doctree +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/.doctrees/index.doctree +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/.nojekyll +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_sources/autoapi/index.rst.txt +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_sources/autoapi/interactive_figure/__about__/index.rst.txt +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_sources/autoapi/interactive_figure/index.rst.txt +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_sources/index.rst.txt +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/_sphinx_javascript_frameworks_compat.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/basic.css +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/badge_only.css +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/fontawesome-webfont.eot +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/fontawesome-webfont.svg +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/fontawesome-webfont.ttf +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/fontawesome-webfont.woff +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-bold-italic.woff +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-bold-italic.woff2 +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-bold.woff +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-bold.woff2 +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-normal-italic.woff +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-normal-italic.woff2 +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-normal.woff +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-normal.woff2 +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/theme.css +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/doctools.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/documentation_options.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/file.png +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/graphviz.css +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/jquery.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/js/badge_only.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/js/html5shiv-printshiv.min.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/js/html5shiv.min.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/js/theme.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/language_data.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/minus.png +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/plus.png +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/pygments.css +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/searchtools.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/sphinx_highlight.js +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/autoapi/index.html +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/autoapi/interactive_figure/__about__/index.html +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/autoapi/interactive_figure/index.html +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/index.html +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/py-modindex.html +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/search.html +0 -0
- {interactive_figure-0.2.2/docs → interactive_figure-0.3.1}/docs_source/conf.py +0 -0
- {interactive_figure-0.2.2/docs → interactive_figure-0.3.1}/docs_source/index.rst +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/src/interactive_figure/__init__.py +0 -0
- {interactive_figure-0.2.2 → interactive_figure-0.3.1}/tests/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: interactive-figure
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.1
|
|
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
|
|
@@ -17,8 +17,8 @@ def run_demo():
|
|
|
17
17
|
while True:
|
|
18
18
|
interactive_figure.wait_for_interaction()
|
|
19
19
|
|
|
20
|
-
key = interactive_figure.
|
|
21
|
-
mouse = interactive_figure.
|
|
20
|
+
key = interactive_figure.get_last_key_press()
|
|
21
|
+
mouse = interactive_figure.get_last_mouse_press()
|
|
22
22
|
x, y = interactive_figure.get_last_mouse_pos()
|
|
23
23
|
|
|
24
24
|
interactive_figure.clear()
|
|
@@ -43,7 +43,7 @@ def run_demo():
|
|
|
43
43
|
interaction_type = interactive_figure.wait_for_interaction(TIME_LIMIT)
|
|
44
44
|
time_after = time.time()
|
|
45
45
|
|
|
46
|
-
key = interactive_figure.
|
|
46
|
+
key = interactive_figure.get_last_key_press()
|
|
47
47
|
x, y = interactive_figure.get_last_mouse_pos()
|
|
48
48
|
dt = round(time_after - time_before, 3)
|
|
49
49
|
|
|
@@ -5,6 +5,6 @@ from interactive_figure import interactive_figure
|
|
|
5
5
|
interactive_figure.create()
|
|
6
6
|
# Stall until user input is received.
|
|
7
7
|
interactive_figure.wait_for_interaction()
|
|
8
|
-
key = interactive_figure.
|
|
8
|
+
key = interactive_figure.get_last_key_press()
|
|
9
9
|
print(f"Pressed key: {key}")
|
|
10
10
|
interactive_figure.close()
|
|
Binary file
|
|
Binary file
|
|
@@ -33,8 +33,8 @@ Functions
|
|
|
33
33
|
interactive_figure.interactive_figure.close
|
|
34
34
|
interactive_figure.interactive_figure.gcf
|
|
35
35
|
interactive_figure.interactive_figure.gca
|
|
36
|
-
interactive_figure.interactive_figure.
|
|
37
|
-
interactive_figure.interactive_figure.
|
|
36
|
+
interactive_figure.interactive_figure.get_last_key_press
|
|
37
|
+
interactive_figure.interactive_figure.get_last_mouse_press
|
|
38
38
|
interactive_figure.interactive_figure.get_last_mouse_pos
|
|
39
39
|
|
|
40
40
|
|
|
@@ -126,7 +126,7 @@ Functions
|
|
|
126
126
|
Axes handler
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
.. py:function::
|
|
129
|
+
.. py:function:: get_last_key_press()
|
|
130
130
|
|
|
131
131
|
Get the last keypress and convert it to lowercase.
|
|
132
132
|
|
|
@@ -136,7 +136,7 @@ Functions
|
|
|
136
136
|
The last key that was pressed
|
|
137
137
|
|
|
138
138
|
|
|
139
|
-
.. py:function::
|
|
139
|
+
.. py:function:: get_last_mouse_press()
|
|
140
140
|
|
|
141
141
|
Get the last mousepress and convert it to an integer value.
|
|
142
142
|
|
|
@@ -123,10 +123,10 @@ and when to draw the contents of the figure.</p>
|
|
|
123
123
|
<tr class="row-odd"><td><p><a class="reference internal" href="#interactive_figure.interactive_figure.gca" title="interactive_figure.interactive_figure.gca"><code class="xref py py-obj docutils literal notranslate"><span class="pre">gca</span></code></a>()</p></td>
|
|
124
124
|
<td><p>Get Axes object of interactive figure.</p></td>
|
|
125
125
|
</tr>
|
|
126
|
-
<tr class="row-even"><td><p><a class="reference internal" href="#interactive_figure.interactive_figure.
|
|
126
|
+
<tr class="row-even"><td><p><a class="reference internal" href="#interactive_figure.interactive_figure.get_last_key_press" title="interactive_figure.interactive_figure.get_last_key_press"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_last_key_press</span></code></a>()</p></td>
|
|
127
127
|
<td><p>Get the last keypress and convert it to lowercase.</p></td>
|
|
128
128
|
</tr>
|
|
129
|
-
<tr class="row-odd"><td><p><a class="reference internal" href="#interactive_figure.interactive_figure.
|
|
129
|
+
<tr class="row-odd"><td><p><a class="reference internal" href="#interactive_figure.interactive_figure.get_last_mouse_press" title="interactive_figure.interactive_figure.get_last_mouse_press"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_last_mouse_press</span></code></a>()</p></td>
|
|
130
130
|
<td><p>Get the last mousepress and convert it to an integer value.</p></td>
|
|
131
131
|
</tr>
|
|
132
132
|
<tr class="row-even"><td><p><a class="reference internal" href="#interactive_figure.interactive_figure.get_last_mouse_pos" title="interactive_figure.interactive_figure.get_last_mouse_pos"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_last_mouse_pos</span></code></a>()</p></td>
|
|
@@ -246,8 +246,8 @@ use a timeout in seconds.</p>
|
|
|
246
246
|
</dd></dl>
|
|
247
247
|
|
|
248
248
|
<dl class="py function">
|
|
249
|
-
<dt class="sig sig-object py" id="interactive_figure.interactive_figure.
|
|
250
|
-
<span class="sig-name descname"><span class="pre">
|
|
249
|
+
<dt class="sig sig-object py" id="interactive_figure.interactive_figure.get_last_key_press">
|
|
250
|
+
<span class="sig-name descname"><span class="pre">get_last_key_press</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#interactive_figure.interactive_figure.get_last_key_press" title="Link to this definition"></a></dt>
|
|
251
251
|
<dd><p>Get the last keypress and convert it to lowercase.</p>
|
|
252
252
|
<section id="id5">
|
|
253
253
|
<h4>Returns<a class="headerlink" href="#id5" title="Link to this heading"></a></h4>
|
|
@@ -259,8 +259,8 @@ use a timeout in seconds.</p>
|
|
|
259
259
|
</dd></dl>
|
|
260
260
|
|
|
261
261
|
<dl class="py function">
|
|
262
|
-
<dt class="sig sig-object py" id="interactive_figure.interactive_figure.
|
|
263
|
-
<span class="sig-name descname"><span class="pre">
|
|
262
|
+
<dt class="sig sig-object py" id="interactive_figure.interactive_figure.get_last_mouse_press">
|
|
263
|
+
<span class="sig-name descname"><span class="pre">get_last_mouse_press</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#interactive_figure.interactive_figure.get_last_mouse_press" title="Link to this definition"></a></dt>
|
|
264
264
|
<dd><p>Get the last mousepress and convert it to an integer value.</p>
|
|
265
265
|
<section id="id6">
|
|
266
266
|
<h4>Returns<a class="headerlink" href="#id6" title="Link to this heading"></a></h4>
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
</li>
|
|
114
114
|
</ul></td>
|
|
115
115
|
<td style="width: 33%; vertical-align: top;"><ul>
|
|
116
|
-
<li><a href="autoapi/interactive_figure/interactive_figure/index.html#interactive_figure.interactive_figure.
|
|
116
|
+
<li><a href="autoapi/interactive_figure/interactive_figure/index.html#interactive_figure.interactive_figure.get_last_key_press">get_last_key_press() (in module interactive_figure.interactive_figure)</a>
|
|
117
117
|
</li>
|
|
118
118
|
<li><a href="autoapi/interactive_figure/interactive_figure/index.html#interactive_figure.interactive_figure.get_last_mouse_pos">get_last_mouse_pos() (in module interactive_figure.interactive_figure)</a>
|
|
119
119
|
</li>
|
|
120
|
-
<li><a href="autoapi/interactive_figure/interactive_figure/index.html#interactive_figure.interactive_figure.
|
|
120
|
+
<li><a href="autoapi/interactive_figure/interactive_figure/index.html#interactive_figure.interactive_figure.get_last_mouse_press">get_last_mouse_press() (in module interactive_figure.interactive_figure)</a>
|
|
121
121
|
</li>
|
|
122
122
|
</ul></td>
|
|
123
123
|
</tr></table>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Sphinx inventory version 2
|
|
2
|
+
# Project: Interactive Figure
|
|
3
|
+
# Version:
|
|
4
|
+
# The remainder of this file is compressed using zlib.
|
|
5
|
+
x�͖�N�0��y� �v�u7.H; Mp�e��E�I�8��x
|
|
6
|
+
cY�3��F��a>͍�Y?�:�>�g�
|
|
7
|
+
�����k8���G�-Srh5��ő�w4��R惔�7H��Z��3��O�SY/��0P4!�c��_��痣A�+��ۡ�"�Q0���l�y���#����\���R���ma�E�K��y �6��p
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Search.setIndex({"docnames": ["autoapi/index", "autoapi/interactive_figure/__about__/index", "autoapi/interactive_figure/index", "autoapi/interactive_figure/interactive_figure/index", "index"], "filenames": ["autoapi/index.rst", "autoapi/interactive_figure/__about__/index.rst", "autoapi/interactive_figure/index.rst", "autoapi/interactive_figure/interactive_figure/index.rst", "index.rst"], "titles": ["API Reference", "<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">interactive_figure.__about__</span></code>", "<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">interactive_figure</span></code>", "<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">interactive_figure.interactive_figure</span></code>", "Welcome to Interactive Figure\u2019s documentation!"], "terms": {"thi": [0, 3], "page": 0, "contain": 0, "auto": [0, 3], "gener": 0, "document": 0, "1": [0, 3], "interactive_figur": [0, 4], "__about__": [], "creat": [0, 3], "sphinx": 0, "autoapi": 0, "__version__": [], "0": [], "2": [], "aspect_ratio": 3, "hide_toolbar": 3, "fals": 3, "kwarg": 3, "interact": 3, "figur": 3, "str": 3, "option": 3, "aspect": 3, "ratio": 3, "ax": 3, "default": 3, "bool": 3, "whether": 3, "hide": 3, "toolbar": 3, "ani": 3, "sent": 3, "creation": 3, "runtimeerror": 3, "multipl": 3, "ar": 3, "toggle_fullscreen": 3, "toggl": 3, "fullscreen": 3, "clear": 3, "reset": 3, "layout": 3, "drawabl": 3, "wait": 3, "timeout": 3, "given": 3, "number": 3, "second": 3, "dure": 3, "period": 3, "i": 3, "possibl": 3, "For": 3, "sub": 3, "us": 3, "time": 3, "instead": 3, "float": 3, "wait_for_interact": 3, "int": 3, "when": 3, "input": 3, "none": 3, "true": 3, "kei": 3, "wa": 3, "press": 3, "mous": 3, "button": 3, "within": 3, "draw": 3, "close": 3, "get_stat": [], "get": 3, "all": [], "state": [], "inform": [], "simplenamespac": [], "namespac": [], "gcf": 3, "current": [], "handler": 3, "gca": 3, "get_last_keypress": [], "last": 3, "keypress": 3, "normal": [], "lowercas": 3, "The": 3, "get_last_mousepress": [], "mousepress": 3, "convert": 3, "its": [], "integ": 3, "valu": 3, "identifi": 3, "get_last_mouse_po": 3, "posit": 3, "x": 3, "y": 3, "regist": 3, "after": 3, "_check_exist": [], "check": [], "exist": [], "If": [], "avail": [], "_state_reset_fig": [], "_state_reset_press": [], "_key_press_handl": [], "event": [], "coordin": [], "object": 3, "intern": [], "_button_press_handl": [], "_state": [], "api": 4, "refer": 4, "submodul": [], "modul": [], "content": [], "function": [], "attribut": [], "testm": [], "author": [], "teun": [], "mathijssen": [], "http": 3, "github": 3, "com": 3, "teuncm": 3, "provid": 3, "matplotlib": 3, "keyboard": 3, "locat": 3, "user": 3, "ha": 3, "fine": 3, "grain": 3, "control": 3, "over": 3, "link": [], "sourc": 3, "remain": 3, "argument": 3, "upon": 3, "an": 3, "get_last_key_press": 3, "get_last_mouse_press": 3}, "objects": {"": [[2, 0, 0, "-", "interactive_figure"]], "interactive_figure": [[1, 0, 0, "-", "__about__"], [3, 0, 0, "-", "interactive_figure"]], "interactive_figure.interactive_figure": [[3, 1, 1, "", "clear"], [3, 1, 1, "", "close"], [3, 1, 1, "", "create"], [3, 1, 1, "", "draw"], [3, 1, 1, "", "gca"], [3, 1, 1, "", "gcf"], [3, 1, 1, "", "get_last_key_press"], [3, 1, 1, "", "get_last_mouse_pos"], [3, 1, 1, "", "get_last_mouse_press"], [3, 1, 1, "", "toggle_fullscreen"], [3, 1, 1, "", "wait"], [3, 1, 1, "", "wait_for_interaction"]]}, "objtypes": {"0": "py:module", "1": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "function", "Python function"]}, "titleterms": {"api": 0, "refer": 0, "interactive_figur": [1, 2, 3], "__about__": 1, "modul": 3, "content": 3, "submodul": 2, "function": 3, "attribut": [], "paramet": 3, "rais": 3, "return": 3, "welcom": 4, "interact": 4, "figur": 4, "": 4, "document": 4}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"Welcome to Interactive Figure\u2019s documentation!": [[4, "welcome-to-interactive-figure-s-documentation"]], "API Reference": [[0, "api-reference"]], "interactive_figure.__about__": [[1, "module-interactive_figure.__about__"]], "interactive_figure": [[2, "module-interactive_figure"]], "Submodules": [[2, "submodules"]], "interactive_figure.interactive_figure": [[3, "module-interactive_figure.interactive_figure"]], "Module Contents": [[3, "module-contents"]], "Functions": [[3, "functions"]], "Parameters": [[3, "parameters"], [3, "id1"], [3, "id2"]], "Raises": [[3, "raises"]], "Returns": [[3, "returns"], [3, "id3"], [3, "id4"], [3, "id5"], [3, "id6"], [3, "id7"]]}, "indexentries": {"interactive_figure.__about__": [[1, "module-interactive_figure.__about__"]], "module": [[1, "module-interactive_figure.__about__"], [2, "module-interactive_figure"], [3, "module-interactive_figure.interactive_figure"]], "interactive_figure": [[2, "module-interactive_figure"]], "clear() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.clear"]], "close() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.close"]], "create() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.create"]], "draw() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.draw"]], "gca() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.gca"]], "gcf() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.gcf"]], "get_last_key_press() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.get_last_key_press"]], "get_last_mouse_pos() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.get_last_mouse_pos"]], "get_last_mouse_press() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.get_last_mouse_press"]], "interactive_figure.interactive_figure": [[3, "module-interactive_figure.interactive_figure"]], "toggle_fullscreen() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.toggle_fullscreen"]], "wait() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.wait"]], "wait_for_interaction() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.wait_for_interaction"]]}})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["hatchling"
|
|
2
|
+
requires = ["hatchling"]
|
|
3
3
|
build-backend = "hatchling.build"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
@@ -28,12 +28,6 @@ Documentation = "https://teuncm.github.io/interactive-figure/autoapi/interactive
|
|
|
28
28
|
Issues = "https://github.com/teuncm/interactive-figure/issues"
|
|
29
29
|
Source = "https://github.com/teuncm/interactive-figure"
|
|
30
30
|
|
|
31
|
-
[[tool.hatch.build.hooks.build-scripts.scripts]]
|
|
32
|
-
commands = [
|
|
33
|
-
"sphinx-build -b html docs/docs_source/ docs -q"
|
|
34
|
-
]
|
|
35
|
-
artifacts = []
|
|
36
|
-
|
|
37
31
|
[tool.hatch.version]
|
|
38
32
|
path = "src/interactive_figure/__about__.py"
|
|
39
33
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.1"
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/src/interactive_figure/interactive_figure.py
RENAMED
|
@@ -199,7 +199,7 @@ def gca():
|
|
|
199
199
|
return _state.ax
|
|
200
200
|
|
|
201
201
|
|
|
202
|
-
def
|
|
202
|
+
def get_last_key_press():
|
|
203
203
|
"""Get the last keypress and convert it to lowercase.
|
|
204
204
|
|
|
205
205
|
Returns
|
|
@@ -215,7 +215,7 @@ def get_last_keypress():
|
|
|
215
215
|
return key_string.lower()
|
|
216
216
|
|
|
217
217
|
|
|
218
|
-
def
|
|
218
|
+
def get_last_mouse_press():
|
|
219
219
|
"""Get the last mousepress and convert it to an integer value.
|
|
220
220
|
|
|
221
221
|
Returns
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Search.setIndex({"docnames": ["autoapi/index", "autoapi/interactive_figure/__about__/index", "autoapi/interactive_figure/index", "autoapi/interactive_figure/interactive_figure/index", "index"], "filenames": ["autoapi/index.rst", "autoapi/interactive_figure/__about__/index.rst", "autoapi/interactive_figure/index.rst", "autoapi/interactive_figure/interactive_figure/index.rst", "index.rst"], "titles": ["API Reference", "<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">interactive_figure.__about__</span></code>", "<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">interactive_figure</span></code>", "<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">interactive_figure.interactive_figure</span></code>", "Welcome to Interactive Figure\u2019s documentation!"], "terms": {"thi": [0, 3], "page": 0, "contain": 0, "auto": [0, 3], "gener": 0, "document": 0, "1": [0, 3], "interactive_figur": [0, 4], "__about__": [], "creat": [0, 3], "sphinx": 0, "autoapi": 0, "__version__": [], "0": [], "2": [], "aspect_ratio": 3, "hide_toolbar": 3, "fals": 3, "kwarg": 3, "interact": 3, "figur": 3, "str": 3, "option": 3, "aspect": 3, "ratio": 3, "ax": 3, "default": 3, "bool": 3, "whether": 3, "hide": 3, "toolbar": 3, "ani": 3, "sent": 3, "creation": 3, "runtimeerror": 3, "multipl": 3, "ar": 3, "toggle_fullscreen": 3, "toggl": 3, "fullscreen": 3, "clear": 3, "reset": 3, "layout": 3, "drawabl": 3, "wait": 3, "timeout": 3, "given": 3, "number": 3, "second": 3, "dure": 3, "period": 3, "i": 3, "possibl": 3, "For": 3, "sub": 3, "us": 3, "time": 3, "instead": 3, "float": 3, "wait_for_interact": 3, "int": 3, "when": 3, "input": 3, "none": 3, "true": 3, "kei": 3, "wa": 3, "press": 3, "mous": 3, "button": 3, "within": 3, "draw": 3, "close": 3, "get_stat": [], "get": 3, "all": [], "state": [], "inform": [], "simplenamespac": [], "namespac": [], "gcf": 3, "current": [], "handler": 3, "gca": 3, "get_last_keypress": 3, "last": 3, "keypress": 3, "normal": [], "lowercas": 3, "The": 3, "get_last_mousepress": 3, "mousepress": 3, "convert": 3, "its": [], "integ": 3, "valu": 3, "identifi": 3, "get_last_mouse_po": 3, "posit": 3, "x": 3, "y": 3, "regist": 3, "after": 3, "_check_exist": [], "check": [], "exist": [], "If": [], "avail": [], "_state_reset_fig": [], "_state_reset_press": [], "_key_press_handl": [], "event": [], "coordin": [], "object": 3, "intern": [], "_button_press_handl": [], "_state": [], "api": 4, "refer": 4, "submodul": [], "modul": [], "content": [], "function": [], "attribut": [], "testm": [], "author": [], "teun": [], "mathijssen": [], "http": 3, "github": 3, "com": 3, "teuncm": 3, "provid": 3, "matplotlib": 3, "keyboard": 3, "locat": 3, "user": 3, "ha": 3, "fine": 3, "grain": 3, "control": 3, "over": 3, "link": [], "sourc": 3, "remain": 3, "argument": 3, "upon": 3, "an": 3}, "objects": {"": [[2, 0, 0, "-", "interactive_figure"]], "interactive_figure": [[1, 0, 0, "-", "__about__"], [3, 0, 0, "-", "interactive_figure"]], "interactive_figure.interactive_figure": [[3, 1, 1, "", "clear"], [3, 1, 1, "", "close"], [3, 1, 1, "", "create"], [3, 1, 1, "", "draw"], [3, 1, 1, "", "gca"], [3, 1, 1, "", "gcf"], [3, 1, 1, "", "get_last_keypress"], [3, 1, 1, "", "get_last_mouse_pos"], [3, 1, 1, "", "get_last_mousepress"], [3, 1, 1, "", "toggle_fullscreen"], [3, 1, 1, "", "wait"], [3, 1, 1, "", "wait_for_interaction"]]}, "objtypes": {"0": "py:module", "1": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "function", "Python function"]}, "titleterms": {"api": 0, "refer": 0, "interactive_figur": [1, 2, 3], "__about__": 1, "modul": 3, "content": 3, "submodul": 2, "function": 3, "attribut": [], "paramet": 3, "rais": 3, "return": 3, "welcom": 4, "interact": 4, "figur": 4, "": 4, "document": 4}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"Welcome to Interactive Figure\u2019s documentation!": [[4, "welcome-to-interactive-figure-s-documentation"]], "API Reference": [[0, "api-reference"]], "interactive_figure.__about__": [[1, "module-interactive_figure.__about__"]], "interactive_figure": [[2, "module-interactive_figure"]], "Submodules": [[2, "submodules"]], "interactive_figure.interactive_figure": [[3, "module-interactive_figure.interactive_figure"]], "Module Contents": [[3, "module-contents"]], "Functions": [[3, "functions"]], "Parameters": [[3, "parameters"], [3, "id1"], [3, "id2"]], "Raises": [[3, "raises"]], "Returns": [[3, "returns"], [3, "id3"], [3, "id4"], [3, "id5"], [3, "id6"], [3, "id7"]]}, "indexentries": {"interactive_figure.__about__": [[1, "module-interactive_figure.__about__"]], "module": [[1, "module-interactive_figure.__about__"], [2, "module-interactive_figure"], [3, "module-interactive_figure.interactive_figure"]], "interactive_figure": [[2, "module-interactive_figure"]], "clear() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.clear"]], "close() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.close"]], "create() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.create"]], "draw() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.draw"]], "gca() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.gca"]], "gcf() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.gcf"]], "get_last_keypress() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.get_last_keypress"]], "get_last_mouse_pos() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.get_last_mouse_pos"]], "get_last_mousepress() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.get_last_mousepress"]], "interactive_figure.interactive_figure": [[3, "module-interactive_figure.interactive_figure"]], "toggle_fullscreen() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.toggle_fullscreen"]], "wait() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.wait"]], "wait_for_interaction() (in module interactive_figure.interactive_figure)": [[3, "interactive_figure.interactive_figure.wait_for_interaction"]]}})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/Roboto-Slab-Bold.woff
RENAMED
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/Roboto-Slab-Bold.woff2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/fontawesome-webfont.eot
RENAMED
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/fontawesome-webfont.svg
RENAMED
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/fontawesome-webfont.ttf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-bold-italic.woff
RENAMED
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-bold-italic.woff2
RENAMED
|
File without changes
|
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-bold.woff2
RENAMED
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-normal-italic.woff
RENAMED
|
File without changes
|
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-normal.woff
RENAMED
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/css/fonts/lato-normal.woff2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/_static/js/html5shiv-printshiv.min.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{interactive_figure-0.2.2 → interactive_figure-0.3.1}/docs/autoapi/interactive_figure/index.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|