interactive-figure 0.3.3__tar.gz → 0.3.4__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.

Files changed (123) hide show
  1. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/.gitignore +159 -159
  2. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/LICENSE.txt +7 -7
  3. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/PKG-INFO +5 -18
  4. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/README.md +51 -64
  5. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/demo/press.py +54 -54
  6. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/demo/reaction_time.py +71 -71
  7. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/demo/usage.py +10 -10
  8. interactive_figure-0.3.4/docs/.buildinfo +4 -0
  9. interactive_figure-0.3.3/docs/.buildinfo → interactive_figure-0.3.4/docs/.buildinfo.bak +4 -4
  10. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/.doctrees/autoapi/index.doctree +0 -0
  11. interactive_figure-0.3.4/docs/.doctrees/autoapi/interactive_figure/index.doctree +0 -0
  12. interactive_figure-0.3.4/docs/.doctrees/autoapi/interactive_figure/interactive_figure/index.doctree +0 -0
  13. interactive_figure-0.3.4/docs/.doctrees/environment.pickle +0 -0
  14. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/.doctrees/index.doctree +0 -0
  15. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_sources/autoapi/interactive_figure/__about__/index.rst.txt +8 -8
  16. interactive_figure-0.3.4/docs/_sources/autoapi/interactive_figure/index.rst.txt +15 -0
  17. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_sources/autoapi/interactive_figure/interactive_figure/index.rst.txt +40 -61
  18. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_sources/index.rst.txt +9 -9
  19. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/basic.css +913 -924
  20. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/badge_only.css +1 -1
  21. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/theme.css +1 -1
  22. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/doctools.js +0 -7
  23. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/documentation_options.js +12 -12
  24. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-bold.eot +0 -0
  25. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-bold.ttf +0 -0
  26. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-bold.woff +0 -0
  27. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-bold.woff2 +0 -0
  28. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-bolditalic.eot +0 -0
  29. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-bolditalic.ttf +0 -0
  30. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-bolditalic.woff +0 -0
  31. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-bolditalic.woff2 +0 -0
  32. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-italic.eot +0 -0
  33. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-italic.ttf +0 -0
  34. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-italic.woff +0 -0
  35. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-italic.woff2 +0 -0
  36. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-regular.eot +0 -0
  37. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-regular.ttf +0 -0
  38. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-regular.woff +0 -0
  39. interactive_figure-0.3.4/docs/_static/fonts/Lato/lato-regular.woff2 +0 -0
  40. interactive_figure-0.3.4/docs/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot +0 -0
  41. interactive_figure-0.3.4/docs/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf +0 -0
  42. interactive_figure-0.3.4/docs/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff +0 -0
  43. interactive_figure-0.3.4/docs/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2 +0 -0
  44. interactive_figure-0.3.4/docs/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
  45. interactive_figure-0.3.4/docs/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
  46. interactive_figure-0.3.4/docs/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
  47. interactive_figure-0.3.4/docs/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
  48. interactive_figure-0.3.4/docs/_static/graphviz.css +12 -0
  49. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/js/html5shiv-printshiv.min.js +3 -3
  50. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/js/html5shiv.min.js +3 -3
  51. interactive_figure-0.3.4/docs/_static/js/versions.js +224 -0
  52. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/language_data.js +192 -199
  53. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/pygments.css +74 -74
  54. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/searchtools.js +129 -71
  55. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/autoapi/index.html +126 -128
  56. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/autoapi/interactive_figure/__about__/index.html +105 -105
  57. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/autoapi/interactive_figure/index.html +126 -128
  58. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/autoapi/interactive_figure/interactive_figure/index.html +288 -321
  59. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/genindex.html +204 -219
  60. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/index.html +114 -116
  61. interactive_figure-0.3.4/docs/objects.inv +8 -0
  62. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/py-modindex.html +124 -131
  63. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/search.html +119 -121
  64. interactive_figure-0.3.4/docs/searchindex.js +1 -0
  65. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs_source/conf.py +29 -29
  66. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs_source/index.rst +9 -9
  67. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/generate_docs.sh +3 -3
  68. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/pyproject.toml +157 -157
  69. interactive_figure-0.3.4/src/interactive_figure/__about__.py +1 -0
  70. interactive_figure-0.3.4/src/interactive_figure/__init__.py +0 -0
  71. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/src/interactive_figure/interactive_figure.py +312 -326
  72. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/tests/__init__.py +3 -3
  73. interactive_figure-0.3.3/docs/.doctrees/autoapi/interactive_figure/index.doctree +0 -0
  74. interactive_figure-0.3.3/docs/.doctrees/autoapi/interactive_figure/interactive_figure/index.doctree +0 -0
  75. interactive_figure-0.3.3/docs/.doctrees/autoapi/src/__about__/index.doctree +0 -0
  76. interactive_figure-0.3.3/docs/.doctrees/autoapi/src/index.doctree +0 -0
  77. interactive_figure-0.3.3/docs/.doctrees/autoapi/src/interactive_figure/__about__/index.doctree +0 -0
  78. interactive_figure-0.3.3/docs/.doctrees/autoapi/src/interactive_figure/index.doctree +0 -0
  79. interactive_figure-0.3.3/docs/.doctrees/autoapi/src/interactive_figure/interactive_figure/index.doctree +0 -0
  80. interactive_figure-0.3.3/docs/.doctrees/environment.pickle +0 -0
  81. interactive_figure-0.3.3/docs/_sources/autoapi/interactive_figure/index.rst.txt +0 -15
  82. interactive_figure-0.3.3/docs/_sources/autoapi/src/__about__/index.rst.txt +0 -8
  83. interactive_figure-0.3.3/docs/_sources/autoapi/src/index.rst.txt +0 -15
  84. interactive_figure-0.3.3/docs/_sources/autoapi/src/interactive_figure/__about__/index.rst.txt +0 -8
  85. interactive_figure-0.3.3/docs/_sources/autoapi/src/interactive_figure/index.rst.txt +0 -167
  86. interactive_figure-0.3.3/docs/_sources/autoapi/src/interactive_figure/interactive_figure/index.rst.txt +0 -158
  87. interactive_figure-0.3.3/docs/_static/graphviz.css +0 -19
  88. interactive_figure-0.3.3/docs/autoapi/src/__about__/index.html +0 -106
  89. interactive_figure-0.3.3/docs/autoapi/src/index.html +0 -129
  90. interactive_figure-0.3.3/docs/autoapi/src/interactive_figure/__about__/index.html +0 -106
  91. interactive_figure-0.3.3/docs/autoapi/src/interactive_figure/index.html +0 -331
  92. interactive_figure-0.3.3/docs/autoapi/src/interactive_figure/interactive_figure/index.html +0 -322
  93. interactive_figure-0.3.3/docs/objects.inv +0 -7
  94. interactive_figure-0.3.3/docs/searchindex.js +0 -1
  95. interactive_figure-0.3.3/src/interactive_figure/__about__.py +0 -1
  96. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/.doctrees/autoapi/interactive_figure/__about__/index.doctree +0 -0
  97. /interactive_figure-0.3.3/src/interactive_figure/__init__.py → /interactive_figure-0.3.4/docs/.nojekyll +0 -0
  98. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_sources/autoapi/index.rst.txt +0 -0
  99. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/_sphinx_javascript_frameworks_compat.js +0 -0
  100. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
  101. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
  102. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
  103. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  104. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/fontawesome-webfont.eot +0 -0
  105. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/fontawesome-webfont.svg +0 -0
  106. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/fontawesome-webfont.ttf +0 -0
  107. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/fontawesome-webfont.woff +0 -0
  108. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
  109. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/lato-bold-italic.woff +0 -0
  110. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/lato-bold-italic.woff2 +0 -0
  111. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/lato-bold.woff +0 -0
  112. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/lato-bold.woff2 +0 -0
  113. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/lato-normal-italic.woff +0 -0
  114. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/lato-normal-italic.woff2 +0 -0
  115. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/lato-normal.woff +0 -0
  116. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/css/fonts/lato-normal.woff2 +0 -0
  117. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/file.png +0 -0
  118. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/jquery.js +0 -0
  119. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/js/badge_only.js +0 -0
  120. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/js/theme.js +0 -0
  121. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/minus.png +0 -0
  122. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/plus.png +0 -0
  123. {interactive_figure-0.3.3 → interactive_figure-0.3.4}/docs/_static/sphinx_highlight.js +0 -0
@@ -1,160 +1,160 @@
1
- # Byte-compiled / optimized / DLL files
2
- __pycache__/
3
- *.py[cod]
4
- *$py.class
5
-
6
- # C extensions
7
- *.so
8
-
9
- # Distribution / packaging
10
- .Python
11
- build/
12
- develop-eggs/
13
- dist/
14
- downloads/
15
- eggs/
16
- .eggs/
17
- lib/
18
- lib64/
19
- parts/
20
- sdist/
21
- var/
22
- wheels/
23
- share/python-wheels/
24
- *.egg-info/
25
- .installed.cfg
26
- *.egg
27
- MANIFEST
28
-
29
- # PyInstaller
30
- # Usually these files are written by a python script from a template
31
- # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
- *.manifest
33
- *.spec
34
-
35
- # Installer logs
36
- pip-log.txt
37
- pip-delete-this-directory.txt
38
-
39
- # Unit test / coverage reports
40
- htmlcov/
41
- .tox/
42
- .nox/
43
- .coverage
44
- .coverage.*
45
- .cache
46
- nosetests.xml
47
- coverage.xml
48
- *.cover
49
- *.py,cover
50
- .hypothesis/
51
- .pytest_cache/
52
- cover/
53
-
54
- # Translations
55
- *.mo
56
- *.pot
57
-
58
- # Django stuff:
59
- *.log
60
- local_settings.py
61
- db.sqlite3
62
- db.sqlite3-journal
63
-
64
- # Flask stuff:
65
- instance/
66
- .webassets-cache
67
-
68
- # Scrapy stuff:
69
- .scrapy
70
-
71
- # Sphinx documentation
72
- docs/_build/
73
-
74
- # PyBuilder
75
- .pybuilder/
76
- target/
77
-
78
- # Jupyter Notebook
79
- .ipynb_checkpoints
80
-
81
- # IPython
82
- profile_default/
83
- ipython_config.py
84
-
85
- # pyenv
86
- # For a library or package, you might want to ignore these files since the code is
87
- # intended to run in multiple environments; otherwise, check them in:
88
- # .python-version
89
-
90
- # pipenv
91
- # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
- # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
- # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
- # install all needed dependencies.
95
- #Pipfile.lock
96
-
97
- # poetry
98
- # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
- # This is especially recommended for binary packages to ensure reproducibility, and is more
100
- # commonly ignored for libraries.
101
- # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
- #poetry.lock
103
-
104
- # pdm
105
- # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
- #pdm.lock
107
- # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
- # in version control.
109
- # https://pdm.fming.dev/#use-with-ide
110
- .pdm.toml
111
-
112
- # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
- __pypackages__/
114
-
115
- # Celery stuff
116
- celerybeat-schedule
117
- celerybeat.pid
118
-
119
- # SageMath parsed files
120
- *.sage.py
121
-
122
- # Environments
123
- .env
124
- .venv
125
- env/
126
- venv/
127
- ENV/
128
- env.bak/
129
- venv.bak/
130
-
131
- # Spyder project settings
132
- .spyderproject
133
- .spyproject
134
-
135
- # Rope project settings
136
- .ropeproject
137
-
138
- # mkdocs documentation
139
- /site
140
-
141
- # mypy
142
- .mypy_cache/
143
- .dmypy.json
144
- dmypy.json
145
-
146
- # Pyre type checker
147
- .pyre/
148
-
149
- # pytype static type analyzer
150
- .pytype/
151
-
152
- # Cython debug symbols
153
- cython_debug/
154
-
155
- # PyCharm
156
- # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
- # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
- # and can be added to the global gitignore or merged into this file. For a more nuclear
159
- # option (not recommended) you can uncomment the following to ignore the entire idea folder.
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
160
  #.idea/
@@ -1,7 +1,7 @@
1
- MIT License
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ MIT License
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: interactive-figure
3
- Version: 0.3.3
3
+ Version: 0.3.4
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
@@ -38,29 +38,15 @@ pip install interactive-figure
38
38
  from interactive_figure import interactive_figure
39
39
 
40
40
  interactive_figure.create()
41
- # Stall until user input is received.
41
+ # Wait until user input is received.
42
42
  interactive_figure.wait_for_interaction()
43
- key = interactive_figure.get_last_keypress()
43
+ key = interactive_figure.get_last_key_press()
44
44
  print(f"Pressed key: {key}")
45
45
  interactive_figure.close()
46
46
  ```
47
47
 
48
48
  Demos can be found in the *demo* folder on GitHub.
49
49
 
50
- ## Functionality
51
-
52
- #### User interaction
53
- - Capture key presses, button presses and mouse location
54
-
55
- #### Figure control
56
- - Create
57
- - Toggle fullscreen
58
- - Clear
59
- - Wait
60
- - Wait for interaction (optionally timeout)
61
- - Draw
62
- - Close
63
-
64
50
  ## Limitations
65
51
 
66
52
  - Waiting for user input will not work in Jupyter Notebooks and the interactive interpreter due to the way Matplotlib handles events.
@@ -74,6 +60,7 @@ pipx install hatch
74
60
  hatch shell
75
61
 
76
62
  # Build
63
+ hatch version fix
77
64
  hatch build -c
78
65
  ./generate_docs.sh
79
66
  ```
@@ -1,65 +1,52 @@
1
- # Interactive Figure
2
-
3
- This package serves for students to learn the basics of Python, Matplotlib and setting up reaction time experiments (visual search task, Stroop task, etc.). For a more accurate timing environment one should refer to e.g. [PsychoPy](https://www.psychopy.org/).
4
-
5
- This is currently used at the University of Amsterdam (UvA) in the course *Introduction to Python Programming for Neuroscientists*.
6
-
7
- Package created using [Hatch](https://hatch.pypa.io).
8
-
9
- ## Installation
10
-
11
- ```shell
12
- pip install interactive-figure
13
- ```
14
-
15
- ## Usage
16
-
17
- ```python
18
- from interactive_figure import interactive_figure
19
-
20
- interactive_figure.create()
21
- # Stall until user input is received.
22
- interactive_figure.wait_for_interaction()
23
- key = interactive_figure.get_last_keypress()
24
- print(f"Pressed key: {key}")
25
- interactive_figure.close()
26
- ```
27
-
28
- Demos can be found in the *demo* folder on GitHub.
29
-
30
- ## Functionality
31
-
32
- #### User interaction
33
- - Capture key presses, button presses and mouse location
34
-
35
- #### Figure control
36
- - Create
37
- - Toggle fullscreen
38
- - Clear
39
- - Wait
40
- - Wait for interaction (optionally timeout)
41
- - Draw
42
- - Close
43
-
44
- ## Limitations
45
-
46
- - Waiting for user input will not work in Jupyter Notebooks and the interactive interpreter due to the way Matplotlib handles events.
47
- - Automated testing is hard since tests should cover multiple backends (macosx, QtAgg, Tkgg) on multiple platforms (Windows, macOS, Linux). Tips are very welcome!
48
-
49
- ## Development
50
-
51
- ```bash
52
- # Setup
53
- pipx install hatch
54
- hatch shell
55
-
56
- # Build
57
- hatch build -c
58
- ./generate_docs.sh
59
- ```
60
-
61
- ## Links
62
-
63
- - [GitHub](https://github.com/teuncm/interactive-figure)
64
- - [PyPI](https://pypi.org/project/interactive-figure/)
1
+ # Interactive Figure
2
+
3
+ This package serves for students to learn the basics of Python, Matplotlib and setting up reaction time experiments (visual search task, Stroop task, etc.). For a more accurate timing environment one should refer to e.g. [PsychoPy](https://www.psychopy.org/).
4
+
5
+ This is currently used at the University of Amsterdam (UvA) in the course *Introduction to Python Programming for Neuroscientists*.
6
+
7
+ Package created using [Hatch](https://hatch.pypa.io).
8
+
9
+ ## Installation
10
+
11
+ ```shell
12
+ pip install interactive-figure
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```python
18
+ from interactive_figure import interactive_figure
19
+
20
+ interactive_figure.create()
21
+ # Wait until user input is received.
22
+ interactive_figure.wait_for_interaction()
23
+ key = interactive_figure.get_last_key_press()
24
+ print(f"Pressed key: {key}")
25
+ interactive_figure.close()
26
+ ```
27
+
28
+ Demos can be found in the *demo* folder on GitHub.
29
+
30
+ ## Limitations
31
+
32
+ - Waiting for user input will not work in Jupyter Notebooks and the interactive interpreter due to the way Matplotlib handles events.
33
+ - Automated testing is hard since tests should cover multiple backends (macosx, QtAgg, Tkgg) on multiple platforms (Windows, macOS, Linux). Tips are very welcome!
34
+
35
+ ## Development
36
+
37
+ ```bash
38
+ # Setup
39
+ pipx install hatch
40
+ hatch shell
41
+
42
+ # Build
43
+ hatch version fix
44
+ hatch build -c
45
+ ./generate_docs.sh
46
+ ```
47
+
48
+ ## Links
49
+
50
+ - [GitHub](https://github.com/teuncm/interactive-figure)
51
+ - [PyPI](https://pypi.org/project/interactive-figure/)
65
52
  - [Documentation](https://teuncm.github.io/interactive-figure/autoapi/interactive_figure/interactive_figure/index.html)
@@ -1,54 +1,54 @@
1
- # This demo shows all the button press registering possibilities.
2
-
3
- from interactive_figure import interactive_figure
4
- import matplotlib.pyplot as plt
5
-
6
-
7
- def main():
8
- interactive_figure.create()
9
- run_demo()
10
- interactive_figure.close()
11
-
12
-
13
- def run_demo():
14
- plt.title("Feedback will appear here.")
15
- interactive_figure.draw()
16
-
17
- while True:
18
- interactive_figure.wait_for_interaction()
19
-
20
- key = interactive_figure.get_last_key_press()
21
- mouse = interactive_figure.get_last_mouse_press()
22
- x, y = interactive_figure.get_last_mouse_pos()
23
-
24
- interactive_figure.clear()
25
-
26
- # Exit if q is pressed outside rectangle.
27
- if x is None or y is None:
28
- if key == "q":
29
- print("Closing...")
30
- return
31
- # Plot keys if pressed inside rectangle.
32
- else:
33
- x = round(x, 3)
34
- y = round(y, 3)
35
-
36
- if not key is None:
37
- plt.text(x, y, key, ha="center", va="center", fontsize="large")
38
- elif mouse == 1:
39
- plt.plot(x, y, "r.", ms=13)
40
- elif mouse == 2:
41
- plt.plot(x, y, "g.", ms=13)
42
- elif mouse == 3:
43
- plt.plot(x, y, "b.", ms=13)
44
- else:
45
- # Any other mouse button.
46
- plt.plot(x, y, "k.", ms=13)
47
-
48
- plt.title(f"key: {key}, x: {x}, y: {y}")
49
-
50
- interactive_figure.draw()
51
-
52
-
53
- if __name__ == "__main__":
54
- main()
1
+ # This demo shows all the button press registering possibilities.
2
+
3
+ from interactive_figure import interactive_figure
4
+ import matplotlib.pyplot as plt
5
+
6
+
7
+ def main():
8
+ interactive_figure.create()
9
+ run_demo()
10
+ interactive_figure.close()
11
+
12
+
13
+ def run_demo():
14
+ plt.title("Feedback will appear here.")
15
+ interactive_figure.draw()
16
+
17
+ while True:
18
+ interactive_figure.wait_for_interaction()
19
+
20
+ key = interactive_figure.get_last_key_press()
21
+ mouse = interactive_figure.get_last_mouse_press()
22
+ x, y = interactive_figure.get_last_mouse_pos()
23
+
24
+ interactive_figure.clear()
25
+
26
+ # Exit if q is pressed outside rectangle.
27
+ if x is None or y is None:
28
+ if key == "q":
29
+ print("Closing...")
30
+ return
31
+ # Plot keys if pressed inside rectangle.
32
+ else:
33
+ x = round(x, 3)
34
+ y = round(y, 3)
35
+
36
+ if not key is None:
37
+ plt.text(x, y, key, ha="center", va="center", fontsize="large")
38
+ elif mouse == 1:
39
+ plt.plot(x, y, "r.", ms=13)
40
+ elif mouse == 2:
41
+ plt.plot(x, y, "g.", ms=13)
42
+ elif mouse == 3:
43
+ plt.plot(x, y, "b.", ms=13)
44
+ else:
45
+ # Any other mouse button.
46
+ plt.plot(x, y, "k.", ms=13)
47
+
48
+ plt.title(f"key: {key}, x: {x}, y: {y}")
49
+
50
+ interactive_figure.draw()
51
+
52
+
53
+ if __name__ == "__main__":
54
+ main()