Method imagefr
| Improve this Doc View Sourceimagefr(Double[,], Double, Double, Double, Double, Double, Double, Double, Double, TransformFunc)
plimagefr: Plot a 2D matrix using cmap1
Declaration
public static void imagefr(Double[, ] idata, Double xmin, Double xmax, Double ymin, Double ymax, Double zmin, Double zmax, Double valuemin, Double valuemax, TransformFunc pltr)
Parameters
Type | Name | Description |
---|---|---|
Double[,] | idata | A matrix of values (intensities) to plot. Should have dimensions of nx by ny. |
Double | xmin | |
Double | xmax | |
Double | ymin | |
Double | ymax | |
Double | zmin | |
Double | zmax | |
Double | valuemin | |
Double | valuemax | |
TransformFunc | pltr | A callback function that defines the transformation between the zero-based indices of the matrix idata and world coordinates. If pltr is not supplied (e.g., is set to NULL in the C case), then the x indices of idata are mapped to the range xmin through xmax and the y indices of idata are mapped to the range ymin through ymax.For the C case, transformation functions are provided in the PLplot library: pltr0 for the identity mapping, and pltr1 and pltr2 for arbitrary mappings respectively defined by vectors and matrices. In addition, C callback routines for the transformation can be supplied by the user such as the mypltr function in examples/c/x09c.c which provides a general linear transformation between index coordinates and world coordinates.For languages other than C you should consult for the details concerning how PLTRANSFORM_callback arguments are interfaced. However, in general, a particular pattern of callback-associated arguments such as a tr vector with 6 elements; xg and yg vectors; or xg and yg matrices are respectively interfaced to a linear-transformation routine similar to the above mypltr function; pltr1; and pltr2. Furthermore, some of our more sophisticated bindings (see, e.g., ) support native language callbacks for handling index to world-coordinate transformations. Examples of these various approaches are given in examples/ltlanguagegtx09*, examples/ltlanguagegtx16*, examples/ltlanguagegtx20*, examples/ltlanguagegtx21*, and examples/ltlanguagegtx22*, for all our supported languages. |
Remarks
Plot a 2D matrix using cmap1.