Re: PlotPoints in plot

*To*: mathgroup at smc.vnet.net*Subject*: [mg48595] Re: PlotPoints in plot*From*: drbob at bigfoot.com (Bobby R. Treat)*Date*: Sat, 5 Jun 2004 19:58:18 -0400 (EDT)*References*: <c9sdj1$c6a$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

>> You can force Mathematica to not sample more points then specified by PlotPoints by setting PlotDivision to 1 No, you can't. Bobby Bill Rowe <readnewsciv at earthlink.net> wrote in message news:<c9sdj1$c6a$1 at smc.vnet.net>... > On 6/4/04 at 4:49 AM, mathma18 at hotmail.com ("G.L.Narasimham") wrote: > > >For the plot command Plot[Sqrt[1-x^2],{x,-1,1},PlotPoints->3] I > >expected to see a triangle joining 3 points on a circle, but a > >continuous line ( default PlotPoints->20? )appears. > > The PlotPoints option specifies the number of points to initially sample. The actual number of points sampled is determined by a combination of PlotPoints, MaxBend and PlotDivision. What happens is the default settings of MaxBend and PlotDivision cause Mathematica to sample the function sufficiently that you get a smooth curve in this case. > > You can force Mathematica to not sample more points then specified by PlotPoints by setting PlotDivision to 1. But I don't think this does what you are looking for. > > If I wanted to plot a polygon, I would first create a list of the vertices to be plotted then use ListPlot with PlotJoined->True