Re: Plotting Data
- To: mathgroup@smc.vnet.net
- Subject: [mg10751] Re: Plotting Data
- From: Allan Hayes <hay@haystack.demon.co.uk>
- Date: Mon, 2 Feb 1998 00:44:47 -0500
- References: <6asb8e$fco@smc.vnet.net>
Larry C Linik wrote:
>
> I'm plotting data from a table (x,y] and I want to apply a function to
> the y values to plot (x,f[y]]. How can I do this?
Larry,
data ={{x1,y1},{x2,y2},{x3,y3}}
Apply[{#,f[#2]}&, data,1]
{{x1, f[y1]}, {x2, f[y2]}, {x3, f[y3]}}
--
Allan Hayes
Training and Consulting
Leicester, UK
hay@haystack.demon.co.uk
http://www.haystack.demon.co.uk
voice: +44 (0)116 271 4198
fax: +44 (0)116 271 8642