Re: How to draw closed curve with ListPolarPlot?
- To: mathgroup at smc.vnet.net
- Subject: [mg81076] Re: How to draw closed curve with ListPolarPlot?
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Mon, 10 Sep 2007 18:58:25 -0400 (EDT)
On 9/9/07 at 6:19 AM, forgalaxia at gmail.com (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