MathGroup Archive 2007

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

Search the Archive

Re: How to draw closed curve with ListPolarPlot?

On 9/9/07 at 6:19 AM, forgalaxia at (Galaxia) wrote:

>I have a set of {theta, r} (say, size n), and want to plot them with
>ListPolarPlot. I want the first and last points are connected to get
>a closed curve. How can I do it?

All you need do is append the first point in you data set to the
end of the data set, i.e.,

data = RandomReal[{0, 1}, 50];
ListPolarPlot[Join[#, {First@#}] &@data, Joined -> True]

will produce a closed curve
To reply via email subtract one hundred and four

  • Prev by Date: chirp function
  • Next by Date: Re: LegendreP error (bug?) in Mathematica
  • Previous by thread: How to draw closed curve with ListPolarPlot?
  • Next by thread: Re: How to make a Button inside Manipulate?