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: Apply on MultipleListPlot using pure functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54332] Re: [mg54295] Apply on MultipleListPlot using pure functions
  • From: "David Park" <djmp at earthlink.net>
  • Date: Thu, 17 Feb 2005 10:30:49 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Try using the symbol for multiple arguments, ##, in your pure function.

MultipleListPlot[##, Frame -> True] & @@ {{1, 2, 3}, {4, 5, 6}, {2, 3, 4}};


With

Apply[MultipleListPlot,
{{1, 2, 3}, {4, 5, 6}, {2, 3, 4}}];

you are not using a pure function with arguments so it is only changing the
Head of the outer List.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: pdickof at scf.sk.ca [mailto:pdickof at scf.sk.ca]
To: mathgroup at smc.vnet.net


I seem to be missing soomething with using Apply on pure functions.

The following lines work properly:
Needs["Graphics`MultipleListPlot`"]
MultipleListPlot[{1, 2, 3}, {4, 5, 6}, {2, 3, 4}];
Apply[MultipleListPlot,
{{1, 2, 3}, {4, 5, 6}, {2, 3, 4}}];

but this does not. Why not?
Apply[MultipleListPlot[#, Frame -> True]&,
{{1, 2, 3}, {4, 5, 6}, {2, 3, 4}}];




  • Prev by Date: Re: Apply on MultipleListPlot using pure functions
  • Next by Date: Re: Re: Re: Bug Report - Two numerical values for a same variable
  • Previous by thread: Re: Apply on MultipleListPlot using pure functions
  • Next by thread: Re: Apply on MultipleListPlot using pure functions