       Re: ListPlot & lots 'o dots.

• To: mathgroup at smc.vnet.net
• Subject: [mg87796] Re: [mg87735] ListPlot & lots 'o dots.
• From: "W_Craig Carter" <ccarter at mit.edu>
• Date: Wed, 16 Apr 2008 22:35:40 -0400 (EDT)
• References: <200804160905.FAA24030@smc.vnet.net>

```Hello David,
I am not sure I understand your question accurately, but if I do
understand, then this may be a preferable solution to your problem:
(*fresh kernel*)

test = Table[{x, Sin[n Pi  x]}, {n, 1, 5, 1}, {x, -Pi, Pi, Pi/50}]; (*
supply x and y explicitly *)
ListPlot[test]
ListPlot[test, Joined -> True]
ListLinePlot[test]

This is a lovely example by the way---I am going to use it as a
problem for students to calculate fourier coefficients from data: give
'em the points randomly, extract the coefficients, plot separate
curves...

Craig Carter

On Wed, Apr 16, 2008 at 5:05 AM, Annetts729 <David.Annetts at csiro.au> wrote:
>  With test data
>   test = Table[N@Sin[n \[Pi] x], {n, 1, 5, 1}, {x, -\[Pi], \[Pi], \
>  [Pi]/50}];

>  We can correct the ordinate scale using
>
>   ListPlot[test, Joined->True, DataRange->{-\[Pi], \[Pi]}], and for
>  lots 'o plots this looks messy.
:
:
>  ListPlot[test] (* dotty plot, incorrect ordinate but correct abscissa
>  & labels -- WTF? *)
>

```

• Prev by Date: heat equation through different media/problem with constant flux at
• Next by Date: Re: Any One have an idea?
• Previous by thread: ListPlot & lots 'o dots.
• Next by thread: Re: ListPlot & lots 'o dots.