API¶

pyplot¶

Control the output of standard plotting functions such as plot and hist using sliders and other widgets. When using the ipympl backend these functions will leverage ipywidgets for the controls, otherwise they will use the built-in Matplotlib widgets.

 interactive_plot Control a plot using widgets interactive_hist Control the contents of a histogram using widgets. interactive_scatter Control a scatter plot using widgets. interactive_imshow Control an image using widgets. interactive_axhline Control an horizontal line using widgets. interactive_axvline Control a vertical line using widgets.

generic¶

Functions that will be useful irrespective of backend.

 heatmap_slicer Compare horizontal and/or vertical slices accross multiple arrays. zoom_factory Add ability to zoom with the scroll wheel. panhandler Enable panning a plot with any mouse button. image_segmenter Manually segment an image with the lasso selector. hyperslicer View slices from a hyperstack of images selected by sliders.

utilities¶

Functions that make some features in Matplotlib a bit more convenient.

 ioff A context manager for turning interactive mode off. figure Matplotlib figure but a scalar figsize will multiply rcParams figsize. nearest_idx Return the index of the array that is closest to value.