I have created two lines in a Sympy plot and would to add markers to each line. Using the tip from this post, the following does what I expect.
import sympy as sp
x = sp.symbols('x')
sp.plot(x,-x, markers=[{'args' : [5,5, 'r*'], 'ms' : 10},
{'args' : [5,-5,'r*'],'ms' : 10}])
However, when I break up the above call into two separate plot commands, each with their own set of markers, both lines show up, but only the marker on the first line shows up.
p0 = sp.plot(x, markers=[{'args' : [5,5, 'r*'],'ms' : 10}],show=False)
p1 = sp.plot(-x,markers=[{'args' : [5,-5,'r*'],'ms' : 10}], show=False)
p0.extend(p1)
p0.show()
What am I missing?
Update: One reason for breaking up the single call into two plot calls is to add custom labels to each expression.