I need to extract style information of a matplotlib.lines.Line2D object to use it in a matplotlib.pyplot.plot() call. And (if possible) I want to make it in a more elegant way than filtering style-related properties from Line2D.properties() output.
The code may be like that:
import matplotlib.pyplot as plt
def someFunction(a, b, c, d, **kwargs):
line = plt.plot(a, b, marker='x', **kwargs)[0]
plt.plot(c, d, marker='o', **kwargs) # the line I need to change
In the case I want to have both lines plotted with the same styles (including colour), but with different marker.
Also, I want to be able to use 'autocolouring' feature of the plot() function unless colour has been given explicitly as keyword argument.
