MATLAB POLYSPACE RELEASE NOTES Manual de usuario Pagina 112

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 240
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 111
3 Graphics
To make an existing figure window the current figure, you can click the mouse
while th e pointer is in t hat wind ow or you can ty pe
figure(n)
where n is the number in the figure title bar. The results of subsequent
graphics commands are displayed in this window.
To open a new figure window and m ake it the current figure, type
figure
ClearingtheFigureforaNewPlot
When a figure already exists, m ost plotting commands clear the axes and use
this figure to create the new plot. However, these commands do not reset
figure properties, such as the background color or the colormap. If you have
set a ny figure properties in the previous plot, you m ight want to use the
clf
command with the reset option,
clf reset
before creating your new plot to restore the figure’s properties to their defaults.
For More Information See “Figure Properties” a nd “Graphics Windows
the Figure” in the M ATLAB Graphics documentation f or details about figures.
Displaying Multiple Plots in O ne Figure
The subplot command enables you to display multiple plots in the same
window or print them on the same piece of paper. Typing
subplot(m,n,p)
partitions the f igure wi ndow into an m-by-n matrix of small subplots and
selects the
pth subplot for the current plot. The plots are numbered along the
first ro w of the figure window, then the second row, and so on. For ex ample,
these statements plot data in four different subregions of the figure window:
t = 0:pi/10:2*pi;
3-56
Vista de pagina 111
1 2 ... 107 108 109 110 111 112 113 114 115 116 117 ... 239 240

Comentarios a estos manuales

Sin comentarios