If I plot a piecewise function with a legend label like this:
plot(Piecewise([[(0,1),x],[(1,2),x^2]]),legend_label='f(x)')
I get the legend twice. Is there a way to ensure that it appears only one time, i.e. one legend for the whole function?
| 1 | initial version |
If I plot a piecewise function with a legend label like this:
plot(Piecewise([[(0,1),x],[(1,2),x^2]]),legend_label='f(x)')
I get the legend twice. Is there a way to ensure that it appears only one time, i.e. one legend for the whole function?
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.