Plot every piece of a piecewise defined function in another color?
Is it possible to plot every piece of a piecewise defined function in another color?
Is it possible to plot every piece of a piecewise defined function in another color?
I don't think it's possible to take a single function and plot it with different colors. You could of course add a bunch of plots of the different pieces as separate functions. You might find the rainbow()
function very useful for this, try
sage: rainbow?
for more information.
Or are you asking for this option as an enhancement request? Given your interest and username, I highly suggest you ask for an account at our Trac server (instructions there) and add this to the ticket for improving piecewise plotting. It would be a great way to start getting involved in the Sage community!
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2011-11-04 18:32:05 +0100
Seen: 462 times
Last updated: Nov 04 '11
How do I define a piecewise function?
Piecewise, Sage VS Mathematica
Coercion problem while defining piecewise function
Contour Plot not working with pseudo-piecewise function
Plot picewise function + infinity, error message
Two piecewise defined functions in one plot