Slicer plot#

The slicer plot is designed to provide sliders to slice higher dimensions of the data in an interactive way.

This is used for example in the case of having a 3 dimensional data cube, and wanting to display it as a 2 dimensional image, with a slider to navigate the third dimension.

[1]:
%matplotlib widget
import plopp as pp

da = pp.data.data3d()

The slicer function needs a list of dimensions that are to be kept (all remaining dims will be sliced):

[2]:
pp.slicer(da, keep=['x', 'y'])
[2]:

Keeping only a single dimension will produce a 1 dimensional plot:

[3]:
pp.slicer(da, keep=['x'])
[3]: