MathGroup Archive 2005

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

Search the Archive

Re: Apply on MultipleListPlot using pure functions


On 16 Feb 2005, at 20:36, pdickof at scf.sk.ca wrote:

> 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}}];
>
>
>
You are applying a function with several arguments so you need:

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

Andrzej Kozlowski


Andrzej Kozlowski
Chiba, Japan
http://www.akikoz.net/andrzej/index.html
http://www.mimuw.edu.pl/~akoz/


  • Prev by Date: Re: Apply on MultipleListPlot using pure functions
  • Next by Date: Re: Apply on MultipleListPlot using pure functions
  • Previous by thread: Apply on MultipleListPlot using pure functions
  • Next by thread: Apply on MultipleListPlot using pure functions