Mathematica 9 is now available
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

Re: Graphing Functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27332] Re: Graphing Functions
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Wed, 21 Feb 2001 03:17:08 -0500 (EST)
  • References: <96asca$6f6@smc.vnet.net> <96iqrq$d9u@smc.vnet.net> <96t8ke$ppu@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

> is there a way to turn off Mathematica's
> intelligent default for scale of the y axis?  I would like to look at the
> functions in a "square" format.

With default: scaling to aspect ratio (height/width) = 1/GoldenRatio =
0.618034}

In[6]:=
Plot[Sin[x], {x,-Pi,Pi}]

Make it square

In[9]:=
Plot[Sin[x], {x,-Pi,Pi},AspectRatio \[Rule]1]

Prevent any scaling - take the numbers automatically as they come.

In[8]:=
Plot[Sin[x], {x,-Pi,Pi},AspectRatio \[Rule]Automatic]

> Oh, and just what is the name of the Wolfram book on defining functions
and
> the use of patterns?  I ordered two more from Amazon tonight and I suppose
I
> could order one more.

Please also check out the Help Browser: all of Stephen Wolfram's , The
Mathematica Book, is there on line plus demos plus full information about
the standard add-on packaged - when you need them.
We also have direct access to the information from within notebooks:
Type  Plot  in a notebook; select it and use menu > Help > Find Selected
Function (or keyboard equivalent).

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"nsnn" <mailto:dontreply at tothis.ok> wrote in message
news:96t8ke$ppu at smc.vnet.net...
> Brian (and Alberto, Paul, Peter, Allan and Brian)-
>
> Thanks for the guidance!
>
> Brian - It seems that you have hit on my problem.  I will get errors with
> some very simple functions and not with others.  As soon as I think I have
> it figured out I get errors....
>
> another question when plotting - is there a way to turn off Mathematica's
> intelligent default for scale of the y axis?  I would like to look at the
> functions in a "square" format.  (does this make any sense?  I guess I
just
> want the output to be more like a standard graphing calculator...)
>
> Oh, and just what is the name of the Wolfram book on defining functions
and
> the use of patterns?  I ordered two more from Amazon tonight and I suppose
I
> could order one more.  I had no idea what this program could do when I
> ordered it, and now that I realize the potential I would like to figure it
> out.
>
>
>
> "Brian Higgins" <bghiggins at ucdavis.edu> wrote in message
> news:96iqrq$d9u at smc.vnet.net...
> Type in these variations after you have openend a new notebook:
>
> Plot[x^3-3x,{x,0,3}]
>
> or
>
> f=x^3-3x
> Plot[f,{x,0,3}]
>
> or
>
> f1[x]=x^3-3x
> Plot[f1[x],{x,0,3}]
>
> or
>
> f2[x_]=x^3-3x
> Plot[f2[x],{x,0,3}]
>
> Now try the following
>
> Plot[f2[t],{t,0,3}]
> Plot[f1[t],{t,0,3}]
> Plot[f[x],{x,0,3}]
> Plot[f(x),{x,0,3}]
>
> In the last four statement, the first will work , but the the others
> will produce errors. To understand what is going on try to read the
> Wolfram Book on defining functions and and use of patterns. There is
> also the possibility of using delayed assignments for your definitions
> of functions (f4[x_]:=x^3-3x) which I have not mentioned.
> Hang in, the learning hill is somewaht steep initially, but once you
> get to the top the view of possibilities is spectacular!
>
>
> Brian
>
>
>




  • Prev by Date: Re: chaos-to -order transform
  • Next by Date: Re: chaos-to -order transform
  • Previous by thread: Re: Graphing Functions
  • Next by thread: InitializationCellEvaluation