Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Adding color to piecewise plot' topicStudent Support Forum > General > Archives > "Adding color to piecewise plot"

Next Comment >Help | Reply To Topic
Author Comment/Response
Horatio
03/16/09 3:14pm

Hi,
I have two functions:

Piecewise[{{0.8, x < 0}, {Cos[x], x > 0}}]

and

Piecewise[{{1.8, x < 0}, {2+Sin[x], x > 0}}]

I would like in the plot for the 1st function to be one color, and the second function another color.

I know how to do this if the functions were not piecewise, but since they are piecewise I can't get it to be colorful.

Please help.

Thanks!

URL: ,

Subject (listing for 'Adding color to piecewise plot')
Author Date Posted
Adding color to piecewise plot Horatio 03/16/09 3:14pm
Re: Adding color to piecewise plot yehuda ben-s... 03/19/09 02:51am
Re: Re: Adding color to piecewise plot Jeff 03/25/09 01:38am
Re: Adding color to piecewise plot yehuda ben-s... 03/29/09 03:29am
Next Comment >Help | Reply To Topic