Is there a method in matplotlib to set the attributes of a plot BEFORE actually plotting it? To the context: I have a config file in which I configure aspects of a plot. However, some keys may not be needed to be set (as e.g. the linewidth). I would like to have a function which says something like this :
if 'linethicknes' in config:
ax.set_linewidth = linethickness
I know that there is the possibility to give the linewidth property in the ax.plot(x, y ,linewidth = 1). But here the attribute is set in the plotting function, and I need to set it before the plotting.
Is it possibile to set the linewidth (and other attributes) before this plotting function?
