Tile Plot

Display a 2D array as a series of colored tiles.

Supply a 2D array of data; it will be displayed as a series of rectangles (tiles) colored according to a colormap. The tile boundaries along X and Y may optionally be specified. This VI differs from View Array in that the tiles appear as discrete units, with no smoothing applied. It is the same approach as used with 2D Histogram Plot.

By default, no lines are shown between tiles. This may be adjusted via the Line entry in the property cluster.

../_images/Tiles.png
int32_in int32_out Plot ID/Plot ID Out
Plot identifier. Plot ID Out always contains the same value as Plot ID.
double_2d_in Z Data
2D data to display.
double_1d_in X Tile Boundaries
Optional locations of the tile edge locations. Note that if Z Data has NX elements in the X direction, this array should have NX+1 elements. Defaults to 0..NX.
double_1d_in Y Tile Boundaries
Optional locations of the tile edge locations. Note that if Z Data has NY elements in the Y direction, this array should have NY+1 elements. Defaults to 0..NY.
tiles_props Properties

Property cluster, available under the “Properties” subpalette.

cluster_in Colormap

Controls the colormap used to color the tiles.

enum_in Map
Colormap to use. See Colormaps for more info.
double_in Value Min
Lower range for colormapped data; values smaller than this will all be plotted with the first color in the colormap.
double_in Value Max
Upper range for colormapped data; values larger than this will all be plotted with the last color in the colormap.
enum_in Scaling
Colormap scaling mode. Currently only linear scaling is supported.
bool_in Reverse
Flip the colormap; for example, if a map has 0.0 as black and 1.0 as white, this will assign 0.0 as white and 1.0 as black.
cluster_in Line

Controls the appearance of the lines between tiles. Note: only “Automatic” and “Solid” styles are currently supported; other styles will be ignored.

enum_in Style
Line style (solid, dashed, etc.). Default is to automatically select an appropriate style.
uint32_in Color
Line color. May be a PlotColor or LabView color.
single_in Width
Line width, in font points (1/72 inch).
cluster_in Display

Controls general appearance of the tile plot.

double_in Alpha
Alpha blending value for this object (0.0 to 1.0). Default is 1.0 (fully opaque).
double_in Z Order
Stacking order. Default is chosen based on the object type.
error_in error_out Error In/Out
Terminals for standard error functionality.

Example

Download Tile Plot.vi, or see Examples for a complete list of examples.

../_images/TilesExample.png

Axis Types

This VI supports rectangular axes. Use with polar axes will result in 402905 - Operation Not Supported for Polar Plot.

Other information

If Z Data is empty, no plot is made.

If either X Tile Boundaries or Y Tile Boundaries has less than two entries, or contains non-finite entries (NaN or Inf), it will be ignored and the defaults (0..NX and 0..NY) will be used.