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}}];