pltr1: Linear interpolation for matrix index to world coordinate mapping using singly dimensioned coordinate arrays

`pltr1`: Linear interpolation for matrix index to world coordinate mapping using singly dimensioned coordinate arrays
Prev | Chapter 18. The Specialized C/C++ API for PLplot | Next

#### `pltr1`: Linear interpolation for matrix index to world coordinate mapping using singly dimensioned coordinate arrays

`pltr1 (` | x,
| y,
| tx,
| ty,
| pltr_data`)`;

Linear interpolation for matrix index to world coordinate mapping using one-dimensional `x` and `y` coordinate arrays. This routine can be used for the `PLTRANSFORM_callback` argument of `plcont`, `plshade`, `plshades`, `plimagefr`, or `plvect`.

`x` (``PLFLT``, input)

  X index of matrix.

`y` (``PLFLT``, input)

  Y index of matrix.

`tx` (``PLFLT_NC_SCALAR``, output)

  Transformed x value in world coordinates corresponding to x index of matrix.

`ty` (``PLFLT_NC_SCALAR``, output)

  Transformed y value in world coordinates corresponding to y index of matrix.

`pltr_data` (``PLPointer``, input)

  A pointer to additional data that is passed as an argument to PLplot routines that potentially could use the `pltr1` callback (i.e., `plcont`, `plimagefr`, `plshade`, `plshades`, and `plvect`); which then internally pass that argument on to this callback.

This function is used in C examples 9 and 16.

Prev | Up | Next
`pltr0`: Identity transformation for matrix index to world coordinate mapping | Home | `pltr2`: Linear interpolation for grid to world mapping using doubly dimensioned coordinate arrays (row-major order as per normal C 2d arrays)