clatlan / cdiutils

A python package to help Coherent Diffraction Imaging (CDI) practitioners in their analysis.
MIT License
12 stars 7 forks source link

Add interactive plotting tool #52

Closed DSimonne closed 5 months ago

DSimonne commented 6 months ago

This module is based around one class, Plotter, which for now can take as input a numpy array, or a npy/npz file path.

There are different ways to then plot the data: '2D', 'slices', 'contour_slices', 'sum_slices', 'sum_contour_slices', '3D', by default 'slices'.

The "2D" method is based on Bokeh, and ipywidgets to yield a nice and interactive tool which allows the interaction with the data.

image

The "3D" uses ipyvolume to render a contour based on what vincent had already developped, the other methods are quite obvious.

I usually use this methods to quickly check if there are issues with the data.