Re: Listplot-Bug in Mathematica 5.0

• To: mathgroup at smc.vnet.net
• Subject: [mg50087] Re: Listplot-Bug in Mathematica 5.0
• Date: Sat, 14 Aug 2004 01:50:57 -0400 (EDT)
• Sender: owner-wri-mathgroup at wolfram.com

```On 8/13/04 at 5:55 AM, robertzierer at yahoo.com (Robert Zierer) wrote:

>I think I found a bug in Mathematica 5.0.0.0. The following code
>didn't behave as expected (delete the "`" and the "\\"):

It isn't necessary to delete the "`" and the "\\". You can simply copy then paste from your email into a Mathematica session and Mathematica will do the right thing.

<data and ListPlot example snipped>

>Instead of plotting some step curve (some values of the list were
>multiple), it plotted only parts of the list (only the first value
>in a series of multiple values).

I don't understand what you were expecting but it looks to me as if ListPlot is performing exactly as documented.

Note that

Length[swk]
41

Length[Union[swk]]
6

and

Take[swk, {-10, -2}]

{{3809.5051853424857, -0.002704921194676019},
{3809.5051853424857, -0.002704921194676019},
{3809.5051853424857, -0.002704921194676019},
{3809.5051853424857, -0.002704921194676019},
{3809.5051853424857, -0.002704921194676019},
{3809.5051853424857, -0.002704921194676019},
{3809.5051853424857, -0.002704921194676019},
{3809.5051853424857, -0.002704921194676019},
{3809.5051853424857, -0.002704921194676019}}

That is there appear to be only 6 distinct pairs in swk

When I do ListPlot[swk, PlotRange->All]; I see 6 points ploted

And when I compare ListPlot[swk, PlotJoined->True, PlotRange->All]; I see 5 line segments joined a places corresponding to the plotted points. Given that you are plotting only 6 distinct points, why do you expect a different plot?
--
To reply via email subtract one hundred and four

```

• Prev by Date: Re: Help with parameter estimation
• Next by Date: Re: Re: x-ArcSin[Sin[x]]
• Previous by thread: Re: Listplot-Bug in Mathematica 5.0
• Next by thread: Re: Listplot-Bug in Mathematica 5.0