MATLAB POLYSPACE RELEASE NOTES Bedienungsanleitung Seite 130

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 240
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 129
3 Graphics
Handle Graphics
In this section.. .
“Using the Handle” on page 3-74
“Graphics Objects” on page 3-75
“Setting Object Properties” on page 3-77
“Specifying the Axes or Figure” on page 3-80
“Finding the Handles of Existing Objects” on page 3-81
Handle Graphics refers to a system of graphics objects that MATLAB u ses to
implement grap h in g and visualization function s. Each object create d ha s a
fixed set of properties. You can use these prope rties to c ontrol the behavior
and appearance of your graph.
When you call a plotting function, MATLAB creates the graph using various
graphics objects, such as a figure window, axes, lines, text, and so on.
MATLAB enables you to query the value of each property and set the values
of most properties.
For example, the following statement creates a figure with a white background
color a nd without displaying the figure toolbar:
figure('Color','white','Toolbar', 'none')
Using the Handle
Whenever MATLAB creates a graphics object, it assigns an identifier (called a
handle) to the object. You can use this handle to access the object’s properties
with the
set and ge t functions. For example, the follow in g statements create
a graph and return a handle to a lineseries object in
h:
x = 1:10;
y = x.^3;
h = plot(x,y);
You ca n use the handle h to set the properties of the lineseries object. For
example, you can set its
Color property:
3-74
Seitenansicht 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 239 240

Kommentare zu diesen Handbüchern

Keine Kommentare