First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 10 years ago

ndomes gravatar image

Plotting a piecewise function is different to plotting 'normal' functions.

f = Piecewise([[(0,pi/2),-1],[(pi/2,pi),2]]) 
f.plot()