<< hold Matlab-like plotting library imagesc >>

Matlab-like plotting library >> Matlab-like plotting library > image

image

Display image object

Calling Sequence

image(C)
image(x,y,C)
image(x,y,'PropertyName',PropertyValue)
hdl = image(...)

Parameter

X

vector

y

vector

C

m by n matrix

hdl

Handle of the Matplot entity

Description

image creates an image object by considering each element of the C matrix as an index into the current figure colormap.

When the x and y vectors are given, only the first and last values of these vectors are used and define the range of each variable. By default, the 'YDir' property of parent axis is set to 'Reverse'.

Example

load(plotlibpath()+'mandrill.dat')
drawlater
image(X);
colormap(map);        
axis equal
axis tight
drawnow

Screenshot

See Also

Authors


Report an issue
<< hold Matlab-like plotting library imagesc >>