Create interactive Matplotlib figures!
Reason this release was yanked:
incorrect version tag
Project description
Interactive Figure
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.
This is currently used at the University of Amsterdam (UvA) in the course Introduction to Python Programming for Neuroscientists.
Package created using Hatch.
Installation
pip install interactive-figure
Usage
import interactive_figure as ifig
ifig.create()
# Wait until user input is received.
ifig.wait_for_interaction()
key = ifig.get_last_key_press()
print(f"Pressed key: {key}")
ifig.close()
Demos can be found in the demo folder on GitHub.
Limitations
- Waiting for user input will not work in Jupyter Notebooks and the interactive interpreter due to the way Matplotlib handles events.
- Automated testing is hard since tests should cover multiple backends (macosx, QtAgg, Tkgg) on multiple platforms (Windows, macOS, Linux). Tips are very welcome!
Development
# Setup
pipx install hatch
hatch shell
# Build
hatch version fix
hatch build -c
./generate_docs.sh
# Publish
hatch publish
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file interactive_figure-0.4.42.tar.gz.
File metadata
- Download URL: interactive_figure-0.4.42.tar.gz
- Upload date:
- Size: 9.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8de0f1be05356a95c736f9922f5b047b6baecbd7565596311c757fca2dfec71a
|
|
| MD5 |
064ef405a35d7ce80a5424f2f023f830
|
|
| BLAKE2b-256 |
efad83d7d61cb1367e2be36b3a66002f3eb906ee7b59702052e63c6fb86d1c19
|
File details
Details for the file interactive_figure-0.4.42-py3-none-any.whl.
File metadata
- Download URL: interactive_figure-0.4.42-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fac69c4d9ac72306cfcf49ba642690d8dbabaf26d5f9d1fc77d45e0718a077bf
|
|
| MD5 |
f90232c5c95802420f26a9be4b88c23a
|
|
| BLAKE2b-256 |
08b0c01150996416d25deca6d6e1012bbc5b1145fe7dd5533aa3c67a61ae4618
|