Ask Your Question
0

Plot every piece of a piecewise defined function in another color?

asked 2011-11-04 18:32:05 +0200

sagefan gravatar image

Is it possible to plot every piece of a piecewise defined function in another color?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-11-04 23:03:56 +0200

kcrisman gravatar image

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!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-11-04 18:32:05 +0200

Seen: 393 times

Last updated: Nov 04 '11