Functions with Options
- To: mathgroup at smc.vnet.net
- Subject: [mg31972] Functions with Options
- From: guillerm at usal.es
- Date: Fri, 14 Dec 2001 16:53:00 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
I would like build functions with Options calling Mathematica functions with the same options. Here is a naïf example newPlot[f_, {x_, min_, max}, opts__] := Plot[f, {x, min, max}, opts] But it doesn`t work. newPlot[Sin[x], {x, 0 , 2 Pi}, Axes -> False, AspectRatio -> Automatic] newPlot[Sin[x], {x, 0 , 2 Pi}] Any help? --------------------------------------------- This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/