Re: problem with plot
- To: mathgroup at smc.vnet.net
- Subject: [mg33360] Re: problem with plot
- From: peter weijnitz <pewei at algonet.se>
- Date: Sun, 17 Mar 2002 05:33:13 -0500 (EST)
- References: <a6updc$hsm$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
try
Plot[f[16 x],{x,-1,1},Axes->True,PlotPoints->50]
I has to do with adaptive plotsampling it does not always work with
default settings.
also try
Plot[f[16 x],{x,-1,1},Axes->False]
to se whats going on
Peter W
puma wrote:
> Please try this:
> <<
> f[x_]:=0 /; x < 0 || x >= 1;
> f[x_]:=1 /; x >= 0 && x < 1/2;
> f[x_]:=-1 /; x >= 1/2 && x < 1;
> Plot[f[16 x],{x,0,1}];
> Plot[f[16 x],{x,-1,1}];
>
> Clear[f];
> >>
> why the curve disappear in the 2nd plot?
> only x-interval is changed!
> ?????