Example 03
Show[Graphics[{Rectangle[{0,0},{1,1},plot1],Rectangle[{0.8,0.8},{1.2,1.4},plot2]}]]
GIVEN: Two sets of data (x,y) and (x,z)
REQUIRED: Plot the data on a subdivided window.
SOLUTION: Generate example03.nb file:
File
New
Example03.nb
Enter your data as follows:
x1=0;
x2=1;
x3=2;
x4=3;
x5=4;
x6=5;
y1=6;
y2=7;
y3=8;
y4=9;
y5=10;
y6=11;
z1=12;
z2=14;
z3=16;
z4=18;
z5=20;
z6=22;
plot1=ListPlot[{{x1, y1}, {x2, y2}, {x3, y3}, {x4, y4}, {x5, y5}, {x6, y6}}]
plot2=ListPlot[{{x1, z1}, {x2, z2}, {x3, z3}, {x4, z4}, {x5, z5}, {x6, z6}}]
Show[Graphics[{Rectangle[{0,0},{1,1},plot1],Rectangle[{0.8,0.8},{1.2,1.4},plot2]}]]
Example
Homework:
a. Add frame.
Please send questions or suggestions about this web page to beatnic@aset.psu.edu
ASET | ITS | Penn State
|