Skip to content

Releases: mpl-extensions/mpl-interactions

0.16.1

31 Dec 18:03
Compare
Choose a tag to compare

Matplotlib sliders would break with numpy < 1.19. Found and fixed by @mwshinn in #155

0.16.0

10 Dec 20:35
49a60f6
Compare
Choose a tag to compare

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

0.15.0

01 Dec 03:01
5cb80ff
Compare
Choose a tag to compare

Big PR: #150

  • Scalar arguments can passed tuples to directly create sliders
  • you can index a controls object directly into a scalar argument
  • created a range slider widget
  • added vmin_vmax kwargs
  • more pass through of matplotlib kwargs

0.14.2

30 Nov 20:35
575ff44
Compare
Choose a tag to compare

Fixed an issue with indexer where it would break when passed positional args. e.g. in scatter #152

0.14.1

24 Nov 16:23
ce9697b
Compare
Choose a tag to compare

Fixed xarray missing from hyperslicer docstring

Also gets the stable version to render on RTD they were down when last release happened so builds failed.

0.14.0

24 Nov 03:14
4bdb9e2
Compare
Choose a tag to compare

Implemented the ability to save animations generated from a controls object. #147

0.13.1

23 Nov 17:51
47e87fb
Compare
Choose a tag to compare

#145 Fixed a bug where imshow, hyperslicer and scatter would break if they were not passed the current axis.:

fig, axs = plt.subplots(1, 2)
iplt.imshow(img, ax=axs[0])

would break because this would ultimately call gca()._sci(im) but gca would return axs[1] which was empty.

0.13.0

21 Nov 04:07
28f763f
Compare
Choose a tag to compare

New features:
Created the scatter_selector widgets + allowed mixing of ipywidgets and matplotlib widgets. #141

This enables fun things like this:
scatter-selector-stocks

0.12.0

20 Nov 03:17
9178a51
Compare
Choose a tag to compare

New features:
hyperslicer now natively supports taking xarray objects and infers the approriate sliders from them. #138

Thanks to: @jrussell25 for contributing to this release

0.11.0

17 Nov 04:02
81f477b
Compare
Choose a tag to compare

bug fixes:
image_segmenter wasn't making use of the cmap argument. Now all kwargs are passed through to imshow. Thanks to @stefanopiovesan for finding this bug. #135

Improvements:
image_segmenter now allows styling of the lineprops for the lasso selector.

All the above is documented here: https://mpl-interactions.readthedocs.io/en/latest/examples/image-segmentation.html#Styling