Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

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/


  • Prev by Date: Can I clear all vaiables ?
  • Next by Date: Re: Bump Function
  • Previous by thread: Re: Can I clear all vaiables ?
  • Next by thread: Functions with Options