mpl-interactions
0.8.2
Installation
User install
Optional JupyterLab setup
Development installation
Matplotlib Backends
Further options
Comparison to ipywidgets
Performance
Portability
Convenience
Differences in generated widgets
Tuple of floats
NumPy array or list
Single number
API
pyplot
mpl_interactions.interactive_plot
mpl_interactions.interactive_hist
mpl_interactions.interactive_scatter
mpl_interactions.interactive_imshow
mpl_interactions.interactive_axhline
mpl_interactions.interactive_axvline
generic
mpl_interactions.heatmap_slicer
mpl_interactions.zoom_factory
mpl_interactions.panhandler
mpl_interactions.image_segmenter
mpl_interactions.hyperslicer
utilities
mpl_interactions.ioff
mpl_interactions.figure
mpl_interactions.nearest_idx
Gallery
Contributing
Code Improvements
Seeing your changes
Working with Git
Documentation
Autobuild the documentation
Thank you to our current team!
Tutorials
Usage Guide
Basic Usage
Only Using some of the parameters + specifying axes
Combining Multiple types of Plots
How to Specify Parameters
Tuples
Categoricals
Existing widgets
Fixed Parameters
Styling
Axis scaling
Reference parameters values in the Title
Embedding the controls into a larger layout
Plot
Troubleshooting
set parameters with tuples
Use sets for categorical values
Using widgets for as parameters
With multiple functions
Styling of plot
Title
Slider precision
fixed y-scale
Scatter
Basic example
Using functions and broadcasting
Functions for both x and y
Using functions for other attributes
Modifying the colors of individual points
Putting it together - Wealth of Nations
Data preprocessing
Define functions to provide the data
Marvel at data
Imshow
Providing an axis
Preventing colormap autoscaling
vmin and vmax: thresholding an image
Using Matplotlib Widgets
Differences from ipywidgets sliders
Basic example
Custom positioning of Matplotlib widgets
Image Segmentation
Single class
Erasing
Looking at the mask.
Multiple classes
Change the class by changing the
current_class
variable
pre-seed a mask
Compare Slices of 2D Arrays
Options
Potential improvements
Hyperslicer Tutorial
Names and Values for sliders
Other ways of specifying axes
Visualizing the Lotka-Volterra Model
Define the function
Make the plots
Rössler attractor
Define function to plot
Projecting on axes
Caching
Coloring by time point
Tidbits
Attaching play buttons to sliders
Specifying Which Sliders Get Play buttons
Boolean: All get a button
List: Choose by name
defaultdict: Specify by name and choose default
Choosing Play Button Position
mpl-interactions
»
Examples
Edit on GitHub
Examples
¶
Line plots
Simple example
Other ways to set parameter values
Multiple functions
Styling
Using Matplotlib Widgets
Differences from ipywidgets sliders
Basic example
Custom positioning of Matplotlib widgets
Image Segmentation
Single class
Looking at the mask.
Multiple classes
Compare Slices of 2D Arrays
Options
Potential improvements