Oggi copio qui continuando qui.

**Più grafici per pagina**

Octave can display more than one plot in a single figure. The simplest way to do this is to use the ** subplot** function to divide the plot area into a series of subplot windows that are indexed by an integer. For example,

`subplot (2, 1, 1)`

`fplot (@sin, [-10, 10]);`

`subplot (2, 1, 2)`

`fplot (@cos, [-10, 10]);`

The first call to ** subplot** divides the figure into two plotting areas (two rows and one column) and makes the first plot area active. The grid of plot areas created by

**is numbered in column-major order (top to bottom, left to right).**

`subplot`

Function File: `subplot (rows, cols, index)`

Function File: `subplot (rcn)`

Function File: `subplot (hax)`

Function File: `subplot (..., "align")`

Function File: `subplot (..., "replace")`

Function File: `subplot (..., "position", pos)`

Function File: `subplot (..., prop, val, ...)`

Function File: `hax = subplot (...)`

Set up a plot grid with rows by cols subwindows and set the current axes for plotting (gca) to the location given by ** index**.

If only one numeric argument is supplied, then it must be a three digit value specifying the number of rows in digit 1, the number of columns in digit 2, and the plot index in digit 3.

The plot

**runs row-wise; First, all columns in a row are numbered and then the next row is filled.**

`index`

For example, a plot with 2×3 grid will have plot indices running as follows:

** index** may also be a vector. In this case, the new axis will enclose the grid locations specified. The first demo illustrates this:

`demo ("subplot", 1)`

Continuo…

ed ecco

The ** index** of the subplot to make active may also be specified by its axes handle,

**, returned from a previous subplot command.**

`hax`

If the option

**is given then the plot boxes of the subwindows will align, but this may leave no room for axis tick marks or labels.**

`"align"`

If the option

**is given then the subplot axis will be reset, rather than just switching the current axis for plotting to the requested subplot.**

`"replace"`

The

**property can be used to exactly position the subplot axes within the current figure. The option pos is a 4-element vector**

`"position"`

**that determines the location and size of the axes. The values in pos are normalized in the range**

`[x, y, width, height]`

**.**

`[0,1]`

Any property/value pairs are passed directly to the underlying axes object.

If the output

**is requested, subplot returns the axis handle for the subplot. This is useful for modifying the properties of a subplot using set.**

`hax`

Avanti, qui.

**Più finestre di grafici**

You can open multiple plot windows using the ** figure** function. For example,

`figure (1);`

`fplot (@sin, [-10, 10]);`

`figure (2);`

`fplot (@cos, [-10, 10]);`

Figure numbers must be positive integers.

Command: `figure`

Command: `figure n`

Function File: `figure (n)`

Function File: `figure (..., "property", value, ...)`

Function File: `h = figure (...)`

Create a new figure window for plotting.

If no arguments are specified, a new figure with the next available number is created.

If called with an integer ** n**, and no such numbered figure exists, then a new figure with the specified number is created. If the figure already exists then it is made visible and becomes the current figure for plotting.

Multiple property-value pairs may be specified for the figure object, but they must appear in pairs.

The optional return value

**is a graphics handle to the created figure object.**

`h`