Inspector plot#

The inspector plot takes in a three-dimensional input and applies a reduction operation (sum by default) along one of the dimensions specified by dim. It displays the result as a two-dimensional image.

In addition, the inspector tool 91dde05671494a8aa883f76f1456ffdc in the toolbar allows to add markers on the image, which generate one-dimensional slices (retaining only dim) that are displayed in a second figure.

The points can be dragged/moved, as well as deleted (via a middle click). Below is an example on how to create the inspector plot.

[1]:
%matplotlib widget
import plopp as pp
[2]:
da = pp.data.data3d()
p = pp.inspector(da, dim='z', orientation='vertical')
[4]:
p
[4]:

Controls

  • Click to make new point

  • Drag existing point to move it

  • Middle-click to delete point

Changing the reduction operation#

As mentioned above, the default operation applied along the third dimension is a sum. This can be changed via the operation argument (possible other choices are mean, min, and max):

[5]:
da = pp.data.data3d()
p = pp.inspector(da, orientation='vertical', operation='max')
[7]:
p
[7]: