mpl-interactions
0.17.0
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
mpl_interactions.indexer
widgets
mpl_interactions.widgets.scatter_selector
mpl_interactions.widgets.scatter_selector_value
mpl_interactions.widgets.scatter_selector_index
Gallery
Contributing
Code Improvements
Seeing your changes
Working with Git
Documentation
Embedding GIFs
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
Tuples for RangeSliders
Categoricals
Existing widgets
Fixed Parameters
Styling
Axis scaling
Reference parameters values in the Title, xlabel, or ylabel
Embedding the controls into a larger layout
Custom Callbacks and Accessing Paramter Values
Custom Callbacks
Calling the callback on registration
Accepting multiple paramters
A more complex callback
Accessing parameters
Plot
Troubleshooting
set parameters with tuples
Use sets for categorical values
Using widgets for as parameters
With multiple functions
Styling of plot
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
Hist
Using Matplotlib Widgets
Differences from ipywidgets sliders
Basic example
Custom positioning of Matplotlib widgets
scatter_selector widget
PCA of Stock Data
Data loading/cleaning
Making the plot
Datacleaning
Saving Animations
Basic Usage
Which Generates this GIF
Embeding the animation in a noteook.
Matplotlib Sliders with
valstep=None
Gives this GIF:
Using RangeSliders
How to automatically generate a RangeSlider
Using a
RangeSlider
for Scalar arguments - Thresholding an Image
Using a Matplotlib RangeSlider
But maptlotlib doesn’t have range sliders???!?!?
Using Sliders to control scalar arguments
Setting the scalar parameter using a tuple
Setting Scalar paramters with an indexed controls
Other names for the sliders
Image Segmentation
Single class
Erasing
Looking at the mask.
Multiple classes
Change the class by changing the
current_class
variable
pre-seed a mask
Styling
imshow parameters
LassoSelector line
Zooming and Panning
Load a sample image
enable scroll to zoom
Scrolling and panning
Heatmap Slicer
Comparing heatmaps
Hyperslicer Tutorial
Names and Values for sliders
Other ways of specifying axes
Hyperslicer with Xarray
Visualizing the Lotka-Volterra Model
Define the function
Make the plots
Rössler attractor
Define function to plot
Projecting on axes
Caching
kwarg collisions
Coloring by time point
Tidbits
Attaching play buttons to sliders
Specifying Which Sliders Get Play buttons
Boolean: All get a button
String:
List: Choose by name
defaultdict: Specify by name and choose default
mpl-interactions
»
Index
Edit on GitHub
Index
_
|
C
|
F
|
H
|
I
|
N
|
O
|
P
|
S
|
Z
_
__init__() (image_segmenter method)
(panhandler method)
(scatter_selector method)
(scatter_selector_index method)
(scatter_selector_value method)
C
Code Example
Syntax
F
figure() (in module mpl_interactions)
H
heatmap_slicer() (in module mpl_interactions)
hyperslicer() (in module mpl_interactions)
I
image_segmenter (class in mpl_interactions)
indexer() (in module mpl_interactions)
interactive_axhline() (in module mpl_interactions)
interactive_axvline() (in module mpl_interactions)
interactive_hist() (in module mpl_interactions)
interactive_imshow() (in module mpl_interactions)
interactive_plot() (in module mpl_interactions)
interactive_scatter() (in module mpl_interactions)
ioff (in module mpl_interactions)
N
nearest_idx() (in module mpl_interactions)
O
on_changed() (scatter_selector method)
(scatter_selector_index method)
(scatter_selector_value method)
P
panhandler (class in mpl_interactions)
S
scatter_selector (class in mpl_interactions.widgets)
scatter_selector_index (class in mpl_interactions.widgets)
scatter_selector_value (class in mpl_interactions.widgets)
Syntax
Code Example
Z
zoom_factory() (in module mpl_interactions)
Read the Docs
v: 0.17.0
Versions
latest
stable
0.17.0
0.16.2
0.16.1
0.16.0
0.15.0
0.14.2
0.14.1
0.14.0
0.13.1
0.13.0
0.12.0
0.11.0
0.10.1
0.10.0
0.9.1
0.9.0
0.8.2
0.8.1
0.8.0
0.7.0
0.6.1
Downloads
On Read the Docs
Project Home
Builds