image_irreg
Plot an image with an irregular grid.
Syntax
image_irreg(x,y,R) % Matlab & Octave image_irreg(x,y,R) #R
Description
Plot an image with an irregular grid. This is useful for plotting matrix data (i.e., sampled data that is a function of two parameters) in which one or both of the sampling schemes is not regularly spaced. image_irreg plots R(i,j) as a coloured patch centered on x(i),y(j) and with dimension determined by x(i)-x(i-1) and y(i)-y(i-1).
Inputs
Input var | Description | Default value |
---|---|---|
x | is a vector with the horizontal axis coordinates of each value in R. | N/A |
y | is a vector with the vertical axis coordinates of each value in R. | N/A |
R | is a matrix of measurements to display. | N/A |
Notes & assumptions
- The values in R are converted to colours in the current colormap and caxis. R must be length(x) by length(y). Use NaN to have a patch not display.
- image_irreg plots R(i,j) as a coloured patch centered on x(i),y(j) and with dimension determined by x(i)-x(i-1) and y(i)-y(i-1).
Example
Matlab & Octave
R
About
bugs@animaltags.org Last modified: 8 June 2017