Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: MultipleListPlot Prolem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg55744] Re: [mg55696] MultipleListPlot Prolem
  • From: Igor Antonio <igora at wolf-ram.com>
  • Date: Tue, 5 Apr 2005 03:21:18 -0400 (EDT)
  • Organization: Wolfram Research, Inc.
  • References: <200504030951.FAA15764@smc.vnet.net>
  • Reply-to: igora at wolf-ram.com
  • Sender: owner-wri-mathgroup at wolfram.com

konstantpi at mail15.com wrote:
> i have a trouble with MultipleListPlot
> after reading the package:
> << Graphics`MultipleListPlot`
> MultipleListPlot[{2, 4}, {4, 6, 7, 8}, {1, 2, 8, 9, 5, 6, 23}]
> will draw the 3 lists one over the other.
> but suppose i have a big lists and want to assign it to a variable :
> p={{2, 4}, {4, 6, 7, 8}, {1, 2, 8, 9, 5, 6, 23}}
> MultipleListPlot[p]  will give an error
> this is as MultipleListPlot[{{2, 4}, {4, 6, 7, 8}, {1, 2, 8, 9, 5, 6, 23}}]
> i could not get rid of the outside enclosing {...}
> also:
> Map[MultipleListPlot, p]
> will plot the three lists but separately and not one over the other.
> thanks
> konst.

Konst,

Multiple have already answered how you should change your code, so I'll 
skip that.

The reason that MultipleListPlot "isn't working" is because each list 
argument is supposed to be a list only, not a *list of lists*.  Sequence 
splices a list of lists into multiple arguments to be passed to another 
function.

-- 


Igor Antonio
Wolfram Research, Inc.
http://www.wolfram.com

To email me personally, remove the dash.


  • Prev by Date: spiral cipher
  • Next by Date: Re: GraphPlot vs. SpringEmbedding
  • Previous by thread: Re: Re: MultipleListPlot Prolem
  • Next by thread: Re: MultipleListPlot Prolem