Sunday, May 10 2009
6:00 am

Chapter 2 Two-Dimensional Graphics
2.1 The Plot Function
"One of the most fundamental and useful graphics tools is the Plot function"

In[1]:=

Plot[Sin[x], {x, 0, 2Pi}]

[Graphics:HTMLFiles/index_2.gif]

Out[1]=

⁃Graphics⁃

Great! I now have a nice graph. (I have also changed the Preferences under the Edit menu to a font size of 16.)
The first argument of the Plot function may be a list of functions, which will then give me a superimposed image of each function in the list.

In[3]:=

Plot[{Sin[x], x^2/10}, {x, 0, 2Pi}] ;

[Graphics:HTMLFiles/index_5.gif]

2.2 Resizing Graphics
"After using Plot we can resize the graphic using the mouse. ... the ratio of the graph will remain the same." Click once on the graph to select it and then drag one of the handles.

[Graphics:HTMLFiles/index_6.gif]

If we hold down the Shift key as we drag the handles we change the aspect ratio of the graph.
I was not able to change the aspect ratio of the graph. This may be a new feature in the later versions of Mathematica.

In[6]:=

Plot[Sin[x], {x, 0, 2Pi}, AspectRatioAutomatic]

[Graphics:HTMLFiles/index_8.gif]

Out[6]=

⁃Graphics⁃

In[7]:=

Plot[Sin[x], {x, 0, 2Pi}, AspectRatio1]

[Graphics:HTMLFiles/index_11.gif]

Out[7]=

⁃Graphics⁃

In[8]:=

Plot[Sin[x], {x, 0, 2Pi}]

[Graphics:HTMLFiles/index_14.gif]

Out[8]=

⁃Graphics⁃

2.3 Graphics Options

In[12]:=

Plot[Sin[x], {x, 0, 2Pi},   PlotLabel->"sin x" ]

[Graphics:HTMLFiles/index_17.gif]

Out[12]=

⁃Graphics⁃

I have been playing with a few of the options for PlotLabel but am still having difficulty understanding what is happening. I am not yet in total control of determining the nature of the graph.
Page 34
7:10 am


Created by Mathematica  (May 10, 2009) Valid XHTML 1.1!