RE: PlotPoints in plot

• To: mathgroup at smc.vnet.net
• Subject: [mg48560] RE: [mg48520] PlotPoints in plot
• From: "David Park" <djmp at earthlink.net>
• Date: Sat, 5 Jun 2004 07:19:01 -0400 (EDT)
• Sender: owner-wri-mathgroup at wolfram.com

```Because of the 2D adaptive algorithm for picking plot points it is difficult
to exert point control through that mechanism. You could use PlotDivision,
but the best you can get is something like...

Plot[Sqrt[1 - x^2], {x, -1, 1}, PlotPoints -> 3,
PlotDivision -> 1]

It would be better to use...

pts = Table[{Cos[t], Sin[t]}, {t, 0, Pi, Pi/2}];
Show[Graphics[Line[pts]], Axes -> True];

David Park

From: "G.L.Narasimham" [mailto:mathma18 at hotmail.com]
To: mathgroup at smc.vnet.net

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. However,
ParametricPlot3D[{Cos[t],Sin[t],0},{t,0,Pi},PlotPoints->3,ViewPoint->{0,0,5}
]
gives a triangle. How to get a polygon of straight sides in the
unparametered Plot?

```

• Prev by Date: Another Mathematica Link for your listing...
• Next by Date: Re: Random Matrix of Integers
• Previous by thread: Re: PlotPoints in plot
• Next by thread: Re: PlotPoints in plot