plot '-' matrix with image
5 4 3 1 0
2 2 0 0 1
0 0 0 1 0
0 1 2 4 3
e
e
), keywords center (p.
), and keywords rotate (p.
).
) and dy (p.
). To generate the figure at the right,
the same input image was placed multiple times, each with a specified dx, dy,
and origin. The input PNG image of a building is 50x128 pixels. The tall
building was drawn by mapping this using dx=0.5 dy=1.5. The short building
used a mapping dx=0.5 dy=0.35.
The image style handles input pixels containing a grayscale or color palette value. Thus 2D plots (plot command) require 3 columns of data (x,y,value), while 3D plots (splot command) require 4 columns of data (x,y,z,value).
The rgbimage style handles input pixels that are described by three separate
values for the red, green, and blue components. Thus 5D data (x,y,r,g,b) is
needed for plot and 6D data (x,y,z,r,g,b) for splot. The individual red,
green, and blue components are assumed to lie in the range [0:255].
This matches the convention used in PNG and JPEG files (see binary filetype (p.
)).
However some data files use an alternative convention in which RGB components
are floating point values in the range [0:1]. To use the rgbimage style with
such data, the color component values must be rescaled to the range [0:255].
The rgbalpha style handles input pixels that contain alpha channel
(transparency) information in addition to the red, green, and blue components.
Thus 6D data (x,y,r,g,b,a) is needed for plot and 7D data (x,y,z,r,g,b,a)
for splot. The r, g, b, and alpha components are assumed to lie in the range
[0:255]. To plot data for which RGBA components are floating point values in
the range [0:1] you must rescale the components to lie in the range [0:255].