Create interactive Matplotlib figures!
Project description
Interactive Figure
This package serves for students to learn about basic reaction time experiments (visual search task, Stroop task, etc.). For a more accurate timing environment one should refer to e.g. PsychoPy.
Most functionality only works correctly in standalone scripts, not in notebooks.
Created using Hatch.
Installation
pip install interactive-figure
Usage
from interactive_figure import interactive_figure
interactive_figure.create()
# Stall until user input is received.
interactive_figure.wait_for_interaction()
interactive_figure.close()
A demo using timing can be found in demo/basic.py.
Functionality
User interaction:
- Capture key presses, button presses and mouse location
Figure control:
- Create
- Toggle fullscreen
- Clear
- Wait
- Wait for interaction (optionally timeout)
- Draw
- Close
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
Close
Hashes for interactive_figure-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3cad6d4dd13527f1a1b7754b07e40c9bc1ae3d6ef9109c129f82f7bbee6c210 |
|
MD5 | 02dc8299b321dbb0397e8196c12064b2 |
|
BLAKE2b-256 | 8edd369d948fb6c11ad657ab053ab9fa52cb35d382bf505e2a7e6dd798bd7d31 |