subPlotsFormat

subPlotsFormat.subplotsFormat(caller, sharex=False, sharey=False, projection=None, params=False, FWS=False)

This method is used to try to determine the best number of rows and columns for plotting. Depending on the size of the fileIdxList, the plot will have a maximum of subplots per row, typically around 4-5 and the required number of rows. :arg sharex: matplotlib’s parameter for x-axis sharing :arg sharey: matplotlib’s parameter for y-axis sharing :arg projection: projection type for subplots (None, ‘3d’,…)

(optional, default None)
Parameters:
  • params – if True, use size of paramsNames instead of fileIdxList
  • FWS – if True, use numbers of energy offsets in fixed-window scans instead
Returns:

axis list from figure.subplots method of matplotlib

subPlotsFormat.subplotsFormatWithColorBar(caller, sharex=False, sharey=False, projection=None, params=False)

This method is used to try to determine the best number of rows and columns for plotting. Depending on the size of the fileIdxList, the plot will have a maximum of subplots per row, typically around 4-5 and the required number of rows. Axes are added to plot colorbars as well, so that the number of columns will be twice the number required initially by the data. :arg sharex: matplotlib’s parameter for x-axis sharing :arg sharey: matplotlib’s parameter for y-axis sharing :arg projection: projection type for subplots (None, ‘3d’,…)

(optional, default None)
Parameters:params – if True, use size of paramsNames instead of fileIdxList
Returns:axis list from figure.subplots method of matplotlib