MathGroup Archive 2005

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

Search the Archive

Re: Apply on MultipleListPlot using pure functions


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