fpfs.pltutil#

fpfs.pltutil.determine_cuts(data)[source]#

Determine min_cut and max_cut for the data using median and standard deviation.

Parameters:
  • data (ndarray) – 2D numpy array containing the image data

  • sigma (int) – Number of standard deviations to use for max_cut

Returns:

min_cut, max_cut – Calculated cuts

fpfs.pltutil.make_figure_axes(ny=1, nx=1, square=True)[source]#

Makes figure and axes

Parameters:
  • ny (int) – number of subplots in y direction

  • nx (int) – number of subplots in y direction

  • square (bool) – whether using square plot

fpfs.pltutil.make_plot_image(data)[source]#