Create class `SinglePlot`
Create a next class SinglePlot
to store all parameters related to single plotting.
An instance of SinglePlot
should be created when reading a YAML file.
For example:
simulation:
mode: single
outputs:
output_folder: 'examples/basic/output'
single_plot: <--+
y: 'detector.image.array' |
plot_type: 'histogram' |
plot_args: |
bins: 200 |-- instance of `SinglePlot`
xlabel: 'ADU' |
yscale: 'log' |
title: 'image histogram' <--+
Class SinglePlot
must be used when instantiating a Outputs
class with parameter 'single_plot'.