The class method in the title is expecting a dictionary with values of type list, and this is not documented, nor it is intuitive.
I'm making many plots in a loop using the same Figure and Axes. The basic setup including a twin Axes is done once and the Axes are cleared at the end of the loop using cla(). Axes.cla() resets the ...