Skip to content

0.16.0

Compare
Choose a tag to compare
@ianhi ianhi released this 10 Dec 20:35
· 173 commits to master since this release
49a60f6

Hyperslicer support for vmin_vmax

%matplotlib widget
import numpy as np
import matplotlib.pyplot as plt
import mpl_interactions.ipyplot as iplt
from mpl_interactions import hyperslicer
arr = np.random.randn(5, 100,100)
fig, axs = plt.subplots(1,2)
ctrls = hyperslicer(arr, ax=axs[0], vmin_vmax=("r", arr.min(), arr.max()))
def f(axis0):
    return arr[axis0].flatten()
_ = iplt.hist(f, controls = ctrls['axis0'], ax=axs[1])
_ = iplt.axvline(ctrls['vmin'],ax = axs[1], color='k')
_ = iplt.axvline(ctrls['vmax'],ax = axs[1], color='k')

Peek 2020-12-10 15-33