next up previous contents
Next: Several plots on the Up: One Way to Plot Previous: plotsln.m - General Instructions   Contents

Using with subplot

If you wish to have a smaller plot that is placed toward one of the four corners of the screen/page, you can use the subplot command BEFORE using plotsln. Here is the full call to place the plot in each of the four corners:
$\bullet$
subplot(2,2,1) uses the upper left.
$\bullet$
subplot(2,2,2) uses the upper right.
$\bullet$
subplot(2,2,3) uses the lower left.
$\bullet$
subplot(2,2,4) uses the lower right.

As you might guess, you could plot as many as four plots to a screen/page using init, subplot and plotsln combinations. The following will plot the solutions to two different problems on the same screen/page in the upper right, then lower right positions. (Note: at the Emporium, copy-and-paste init.m instead.)

$\bullet$
Save relevant info for Problem 1 in init.m.
 
>> init 
>> subplot(2,2,2) 
>> plotsln

$\bullet$
Save relevant info for Problem 2 in init.m.
 
>> init 
>> subplot(2,2,4) 
>> plotsln

To return the Figure window to its standard full-picture mode, type clf at the command prompt.


next up previous contents
Next: Several plots on the Up: One Way to Plot Previous: plotsln.m - General Instructions   Contents
Michael Renardy
2000-05-12