Re: Spurious Line
- To: mathgroup at smc.vnet.net
- Subject: [mg75044] Re: Spurious Line
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Sun, 15 Apr 2007 05:09:36 -0400 (EDT)
On 4/14/07 at 1:12 AM, albertj001 at hawaii.rr.com (Jeff Albert) wrote:
>When I run the following I get what is obviously a spurious straight
>line connecting (-100,0) and (300,400*.7). How do I get rid of that
>line?
>{{-100,0},{0,-100},{100,-200*.9},{200,-300*.8},{300,-400*.7},{-100,0
>},{0,100
>},{100,200*.9},{200,300*.8},{300,400*.7}}
>ListPlot[%, PlotJoined->True]
The option, PlotJoined_>True draws a line from each point to the
next in the order the points are listed. So, to get the expected
plot the points need to be listed in increasing x order, i.e.,
ListPlot[Sort@%,PlotJoined->True]
should do what you want
--
To reply via email subtract one hundred and four