{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

class31 - PHYS 5900 Class 31 Zi-Wei Lin Homework#5 is due...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
PHYS 5900 Class 31 (11/16/2009) Zi-Wei Lin Homework #5 is due. Three-Dimensional Graphics Options include AxesEdge , Boxed, BoxRatios, FaceGrids, Lighting, RotationAction, SphericalRegion, ViewCenter. ViewPoint and some of the 2-dimesional graphics options: AspectRatio, Axes, AxesLabel, AxesStyle, Background, Epilog, FormatType, ImageSize, LabelStyle, PlotLabel, PlotRange, Prolog, Ticks. In[1]:= Options @ Graphics3D D In[2]:= myPlot = Plot3D @ Sin @ Sqrt @ x^2 + y^2 DD Sqrt @ x^2 + y^2 D , 8 x, - 8 * Pi, 8 * Pi < , 8 y, - 8 * Pi, 8 * Pi < , PlotStyle fi Text @ "My Plot", 8 5 * Pi, 5 * Pi, 1 <D , PlotRange fi 8 - 0.3, 1. < , AxesLabel fi 8 "x", "y", "z" <D Out[2]= My Plot - 20 0 20 x - 20 0 20 y 0.0 0.5 1.0 z We can use transformation rules for the ticks: In[3]:= 8 , Style @ , fs D< & Table @ 3 * i * Pi, 8 i, - 2, 2 <D Out[3]= 88 - 6 Π , Style @ - 6 Π , fs D< , 8 - 3 Π , Style @ - 3 Π , fs D< , 8 0, Style @ 0, fs D< , 8 3 Π , Style @ 3 Π , fs D< , 8 6 Π , Style @ 6 Π , fs D<<
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
In[4]:= myTicks = Ticks fi H8 spec, spec, 88 0, Style @ 0, fs D< , 8 1, Style @ 1, fs D<<< . 8 spec fi H8 , Style @ , fs D< & Table @ 3 * i * Pi, 8 i, - 2, 2 <DL , fs fi H FontSize fi 9 L<L Out[4]= Ticks fi 888 - 6 Π , - 6 Π < , 8 - 3 Π , - 3 Π < , 8 0, 0 < , 8 3 Π , 3 Π < , 8 6 Π , 6 Π << , 88 - 6 Π , - 6 Π < , 8 - 3 Π , - 3 Π < , 8 0, 0 < , 8 3 Π , 3 Π < , 8 6 Π , 6 Π << , 88 0, 0 < , 8 1, 1 <<< In[5]:= ?//. expr . rules repeatedly performs replacements until expr no longer changes. If we use /. instead of //. , we get In[6]:= Ticks fi H8 spec, spec, 88 0, Style @ 0, fs D< , 8 1, Style @ 1, fs D<<< .
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}