Re: Problem plotting a piecewise function
- To: mathgroup at smc.vnet.net
- Subject: [mg14519] Re: Problem plotting a piecewise function
- From: buttgereit at netcologne.de (Peter Buttgereit)
- Date: Thu, 29 Oct 1998 04:33:16 -0500
- Organization: Dipl.-Sportl. Peter Buttgereit
- References: <70ras4$sge@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
[This followup was posted to comp.soft-sys.math.mathematica and a copy was sent to the cited author.] Hi Sergio, it is because Mathematica by default tries to select a region of most interest in a plot. Evaluate this to see that your function works properly: Plot[ Evaluate[f[x]], {x,Xa,Xb}, PlotRange->All, (*this turns off the mentioned default*) Frame->{True,True,False,False}, Axes->False (*the Axes and Frame statements make it easier to see that f=0 for x>1.5*) ] For more details about this feature see Tom Wickham-Jones' "Mathematica Graphics", Telos, 1994. Cheers, Peter