f4enix.output.plotter.CDFplot#
- class f4enix.output.plotter.CDFplot(suptitle: str | None = None, xlabel: str | None = None, ylabel: str | None = None)#
Bases:
Plotter2DPlotter for cumulative distributions.
all datasets of observations are automatically binnned and plotted as (unfilled) histograms.
- Parameters:
suptitle (str, optional) – title of the plot, by default None
xlabel (str, optional) – X axis label, by default None
ylabel (str, optional) – Y axis label, by default None
- Variables:
fig (matplotlib.pyplot.Figure) – matplotlib figure representation
ax (matplotlib.pyplot.Axis) – matplotlib axes representation
markers (list[str]) – markers used in the plots [‘o’, ‘s’, ‘D’, ‘^’, ‘X’, ‘p’, ‘d’, ‘*’].
lines (list[str]) – linestyles used in the plots [‘-’, ‘–’, ‘-.’, ‘:’]
colors (list[str]) – colors used in the plots. They compose a color-blind friendly palette.
Methods
__init__([suptitle, xlabel, ylabel])Plotter for cumulative distributions.
plot(values_list[, bins, datalabels, perc, ...])plot the comulative distributions as discrete steps
save(outpath)- plot(values_list: list, bins: int = 10, datalabels: list[str] | None = None, perc: bool = True, outside_legend: bool = False, cut_y: float | None = None, cut_x: float | None = None) None#
plot the comulative distributions as discrete steps
- Parameters:
values_list (list) – list of list of values containing the occurencies to be analyzed
bins (int, optional) – number of bins into which the observations should be divided, by default 10
datalabels (list[str], optional) – list of labels to be added in the plot legend representing the different datasets reported in values_list, by default None
perc (bool, optional) – if True, format y-axis as percentages, by default True
outside_legend (bool) – if True pushes the legend outside of the graph frame, by default is False
cut_y (float, optional) – cut the y axis to a specific value, by default is None.
cut_x (float, optional) – cut the x axis to a specific value, by default is None.