Create animated plots in an environment with a non-interactive matplotlib plotting backend set, without disrupting the global plotting backend
Create non-animated, interactive plots for easy inspection of data using the new interactive keyword argument
Set the plotting backend for a single plot using the new mpl_backend keyword argument, and easily switch between backends within a single Python interpreter session, IPython kernel, and even Jupyter notebook cell
Use the new hypertools.set_interactive_backend function to change the backend for all future plots, or use it as a context manager to temporarily switch to a different backend. You can also use this to create multiple animated/interactive plots simultaneously!
You can even use hypertools's backend adjustments to control other plotting libraries
Set the $HYPERTOOLS_BACKEND environment variable to permanently set your preferred plotting backend
(currently applies to use in Python scripts only; the backend in a Jupyter notebook will always default to nbAgg, aka notebook)
Currently supported backends include TkInter, GTK, wxPython, Qt 4, Qt 5, Cocoa (aka MacOSX; MacOS only), notebook/nbAgg (Jupyter notebooks only), and ipympl/widget (Jupyter notebooks only)
Bug fixes
importing hypertools in a notebook no longer creates phantom Python processes, issues warnings when tkinter isn't installed, fails if matplotlib.pyplot was imported first, or silently changes the plotting backend (fixes #242)
creating 3D plots with hypertools no longer alters the global matplotlib.rcParams object (fixes #243)
hypertools can now detect when it's being imported by IPython's TAB-completion library and unload itself so that setup commands are run at import time while still allowing for autocomplete options.
New features
Create animated plots in an environment with a non-interactive
matplotlib
plotting backend set, without disrupting the global plotting backendCreate non-animated, interactive plots for easy inspection of data using the new
interactive
keyword argumentSet the plotting backend for a single plot using the new
mpl_backend
keyword argument, and easily switch between backends within a single Python interpreter session, IPython kernel, and even Jupyter notebook cellUse the new
hypertools.set_interactive_backend
function to change the backend for all future plots, or use it as a context manager to temporarily switch to a different backend. You can also use this to create multiple animated/interactive plots simultaneously!You can even use
hypertools
's backend adjustments to control other plotting librariesSet the
$HYPERTOOLS_BACKEND
environment variable to permanently set your preferred plotting backend(currently applies to use in Python scripts only; the backend in a Jupyter notebook will always default to
nbAgg
, akanotebook
)Currently supported backends include
TkInter
,GTK
,wxPython
,Qt 4
,Qt 5
, Cocoa (akaMacOSX
; MacOS only),notebook
/nbAgg
(Jupyter notebooks only), andipympl
/widget
(Jupyter notebooks only)Bug fixes
hypertools
in a notebook no longer creates phantom Python processes, issues warnings whentkinter
isn't installed, fails ifmatplotlib.pyplot
was imported first, or silently changes the plotting backend (fixes #242)hypertools
no longer alters the globalmatplotlib.rcParams
object (fixes #243)hypertools
can now detect when it's being imported by IPython's TAB-completion library and unload itself so that setup commands are run at import time while still allowing for autocomplete options.