3
<title>Multiple Plot Windows - Untitled</title>
4
<meta http-equiv="Content-Type" content="text/html">
5
<meta name="description" content="Untitled">
6
<meta name="generator" content="makeinfo 4.11">
7
<link title="Top" rel="start" href="index.html#Top">
8
<link rel="up" href="Plotting-Basics.html#Plotting-Basics" title="Plotting Basics">
9
<link rel="prev" href="Multiple-Plots-on-One-Page.html#Multiple-Plots-on-One-Page" title="Multiple Plots on One Page">
10
<link rel="next" href="Printing-Plots.html#Printing-Plots" title="Printing Plots">
11
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12
<meta http-equiv="Content-Style-Type" content="text/css">
13
<style type="text/css"><!--
14
pre.display { font-family:inherit }
15
pre.format { font-family:inherit }
16
pre.smalldisplay { font-family:inherit; font-size:smaller }
17
pre.smallformat { font-family:inherit; font-size:smaller }
18
pre.smallexample { font-size:smaller }
19
pre.smalllisp { font-size:smaller }
20
span.sc { font-variant:small-caps }
21
span.roman { font-family:serif; font-weight:normal; }
22
span.sansserif { font-family:sans-serif; font-weight:normal; }
28
<a name="Multiple-Plot-Windows"></a>
29
Next: <a rel="next" accesskey="n" href="Printing-Plots.html#Printing-Plots">Printing Plots</a>,
30
Previous: <a rel="previous" accesskey="p" href="Multiple-Plots-on-One-Page.html#Multiple-Plots-on-One-Page">Multiple Plots on One Page</a>,
31
Up: <a rel="up" accesskey="u" href="Plotting-Basics.html#Plotting-Basics">Plotting Basics</a>
35
<h4 class="subsection">15.1.5 Multiple Plot Windows</h4>
37
<p>You can open multiple plot windows using the <code>figure</code> function.
40
<pre class="example"> figure (1);
41
fplot (@sin, [-10, 10]);
43
fplot (@cos, [-10, 10]);
45
<p class="noindent">creates two figures, with the first displaying a sine wave and
46
the second a cosine wave. Figure numbers must be positive integers.
48
<p><a name="doc_002dfigure"></a>
51
— Function File: <b>figure</b> (<var>n</var>)<var><a name="index-figure-852"></a></var><br>
52
— Function File: <b>figure</b> (<var>n, property, value, <small class="dots">...</small></var>)<var><a name="index-figure-853"></a></var><br>
53
<blockquote><p>Set the current plot window to plot window <var>n</var>. If no arguments are
54
specified, the next available window number is chosen.
56
<p>Multiple property-value pairs may be specified for the figure, but they
58
</p></blockquote></div>