Re: RE: piecewise plot
- To: mathgroup at smc.vnet.net
- Subject: [mg78936] Re: [mg78907] RE: [mg78854] piecewise plot
- From: Brett Champion <brettc at wolfram.com>
- Date: Fri, 13 Jul 2007 06:02:51 -0400 (EDT)
- References: <200707111011.GAA05761@smc.vnet.net> <200707120924.FAA08497@smc.vnet.net>
On Jul 12, 2007, at 4:24 AM , Robert Pigeon wrote: > About this for a start.... > > c[t_] := \[Piecewise] { > {0, t >= 0 && t < 10}, > {1, t >= 10 && t < 20}, > {0, t >= 20 && t < 30}, > {-0.5, t >= 30 && t < 40}, > {0, t >= 40 && t < 50}, > {2, t >= 50 && t < 60} > } > > Plot[c[t],{t,0,60},Filling->Axes,FillingStyle->Orange] > I think you meant to use Filling->Axes to fill the whole area between the curve and the axis. ExclusionsStyle can be used to draw lines between disconnected sections of the curve. Brett Champion Wolfram Research
- References:
- piecewise plot
- From: "Jake Trexel" <jtrexel@ix.netcom.com>
- RE: piecewise plot
- From: Robert Pigeon <robert.pigeon@videotron.ca>
- piecewise plot