MathGroup Archive 2007

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

Search the Archive

Re: Spurious Line


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


  • Prev by Date: Re: minimum of a function
  • Next by Date: Interpolation
  • Previous by thread: Re: Spurious Line
  • Next by thread: Re: Spurious Line