This repository was archived by the owner on May 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
subplot
Florian Rappl edited this page Dec 21, 2014
·
2 revisions
Subplot divides the current figure into rectangular panes that are numbered rowwise. Each pane contains an axes object. Subsequent plots are output to the current pane.
Creates a uniform subplot grid with the specified number of rows and columns.
Argument rows
Scalar
Argument columns
Scalar
Returns 1. entry
SubPlot
a = subplot(4, 3)
Creates a uniform 4x3 plot-grid and saves the grid in the variable a. See the other examples for usage information.
a = subplot(4, 3); a(1, 1) = plot(1:100, rand(100, 4))
Assigns a simple 2D plot with 4 series consisting of 100 random values to row 1, column 1 of the plot-grid.
a = subplot(4, 3); a(2:4, 1:3) = polar(0:pi/100:2*pi, sin(0:pi/100:2*pi))
Assigns a polar plot to row 1, column 1 with rowspan 3 and columnspan 3.
a = subplot(4, 3); set(a(1, 1), "title", "Example 1")
Sets the title of the plot contained in column 1, row 1.