Graphics Programs Reference
In-Depth Information
Some new data now:
60
t = linspace(0,1);
x = humps(t);
y = humps(t.^2)/2;
plot(x,y)
40
20
0
0
50
100
The Axes limits have been set to the next round number in the series of
tickmarks.Tochangethescalesothatthedatafillthewholeplot:
40
axis tight
30
20
10
20
40
60
80
To zoom in on the loop:
12
10
axis([10 25 5 12])
8
6
10
15
20
25
To zoom back out again:
12
60
40
axis auto
20
0
0
50
100
Now let us look at some image data:
clf
load clown
image(X)
colormap(map)
50
100
150
200
100
200
300
The
y
-axis here increases from top to bottom: the
ij
axis mode is the
default for images. To get the
y
-axis increasing from bottom to top:
200
150
axis xy
100
50
100
200
300
To go back again:
12
Or you can use the
zoom
function, which initiates a mouse-based zoomer.


































