Professional Documents
Culture Documents
Numerical Methods
Advanced Plotting and Animation
Advanced Plotting in
MathCAD
Polar Plots
3D Plots
Surface
Contour
Scatter
Bar
Polar Plots #1
X-Y Plot wrapped around a circle
90
120
1
60
r=cos2()
0.8
0.6
150
30
0.4
0.2
F( )
180
210
330
240
300
270
3.749 10
33
Polar Plots #2
k 0.2
r=e
r e
0 0.1 6
90
120
40
60
30
150
30
20
10
180
210
330
240
300
270
3D surface plots
Simple #1
3D surface plots
Simple #2
N
xi
0 N
100
0.1i
f( x y)
Mi j
2
x
f xi yj
yj
0 N
0.1 j
3D surface plots
Simple #3
3D surface plots
Simple #4 Lighting
Contour Plot
- from 3d plot data
Format plot type -> Contour plot
Simple 3D plots
Limitations
X & Y axes scaled in indices
Suited to continuous single
valued functions
More advanced 3D plots
available
3D Scatter plot
3D scatter plot
Photon Scatter in 3D
( XX YY ZZ )
3D surface plots
Parametric Plot
Plot complex surfaces
From Resource Centre Guide to 3D
plotting
( X Y Z)
3D parametric plot
2
Example - 100 for H
X- & YAxes
scaled
in m
( X Y Z100 )
Parametric Plots
How to #1
Rubber sheet N x M
Wrap sheet around surface
XXa,b is x-coord of point a,b
Parametric Plots
Example 1 - Gaussian
N
100
xmin
xmax
ymin
ymax
0 N
0 N
XXi j
xmin x i
YYi j
ymin y j
f( x y)
ZZi j
2
x
f XXi j YYi j
xmax
xmin
N
ymax
N
ymin
Ranges
defined as
before
Fill XX & YY
matrices
Fill ZZ matrix
Parametric Plots
Example 1 - Gaussian
Note:
Axes
scaled
( XX YY ZZ)
The SeriesVector()
program
SeriesVector ( Start Finish nSteps)
Finish Start
nSteps
for i 0 nSteps
Resulti Start i
Result
Parametric Plots
Polar 3D #1
nr
r
n
Xi j
100
0 nr
SeriesVector 0 m 10a 0 nr
30
0 n
SeriesVector( n)
ricos j
Yi j
risin j
Create r vector
0-10 radii, 100
teps
Create vector
-180..180 deg,
30 steps
Fill X & Y
vectors
Paramteric Plots
Polar 3D #2
r
100 ( r )
a
e 0
1
3
a0
Z100i j
3
a 0 100 ri
3D parametric plot
2
Example - 100 for H
X- & YAxes
scaled
in m
( X Y Z100 )
Plot of
2
210
for H
210( r )
r e
2 a 0
cos( )
32 a 0
Z210i j
3
a 0 210 ri j
3D parametric plot
2
Example - 210 for H
( X Y Z210 )
Pretty Pictures
From Resource Centre
Pretty Pictures #3
Planetary Orbit
3 objects
Planet : (xe,ye,ze)
Star : (xs,ys,zs)
Orbit: (xp,yp,zp)
Animation
Principles
Make output depend on FRAME
Tools|Animation|Record
to display dialog
Help|Quicksheets|Graphing and
Visualization
Animation
Hints and Tips
Delete afterwards
Animation Example #1
Cannon Ball with drag
Animation Example #2
LCR at resonance
Animation Example #3
Heat Flow in Plate
Animation Example #4
Planetary Orbits