Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: PlotPoints in plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48578] Re: PlotPoints in plot
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Sat, 5 Jun 2004 07:19:45 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Random Matrix of Integers
  • Next by Date: Re: Extract substrings using metacharacters
  • Previous by thread: RE: PlotPoints in plot
  • Next by thread: Re: PlotPoints in plot