Change axis_specific PlotHelper configurations from list to dict
Currently, the _axis_specific_updates
of the PlotHelper
are expected to be a list (of dictionaries). This does not match the usual cantor configuration structure via dictionaries which are easy to be updated recursively.
Proposal
Expect a dictionary with arbitrary axis labels as keys and the axis-specific configs as values.
axis_specific:
arbitrary_label_1:
axis: [0, 0]
...
arbitrary_label_2:
axis: [0, 1]
...
Adjust the PlotHelper such that it expects a dictionary instead of a list.
Change
# Go over the list of updates and apply them
for update_params in self._axis_specific_updates:
to
for update_params in self._axis_specific_updates.values():
(and adjust initialization).
How to test the implementation?
In the PlotHelper tests.