1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>pltr1: Linear interpolation for matrix index to world coordinate mapping using singly dimensioned coordinate arrays</title><link rel="stylesheet" type="text/css" href="stylesheet.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="index.html" title="Documentation of the PLplot plotting software"><link rel="up" href="API-C.html" title="Chapter 18. The Specialized C/C++ API for PLplot"><link rel="prev" href="pltr0.html" title="pltr0: Identity transformation for matrix index to world coordinate mapping"><link rel="next" href="pltr2.html" title="pltr2: Linear interpolation for grid to world mapping using doubly dimensioned coordinate arrays (row-major order as per normal C 2d arrays)"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">
<code class="function">pltr1</code>: Linear interpolation for matrix index to world
coordinate mapping using singly dimensioned coordinate arrays
</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="pltr0.html">Prev</a> </td><th width="60%" align="center">Chapter 18. The Specialized C/C++ API for PLplot</th><td width="20%" align="right"> <a accesskey="n" href="pltr2.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h4 class="title"><a name="pltr1"></a>
<code class="function">pltr1</code>: Linear interpolation for matrix index to world
coordinate mapping using singly dimensioned coordinate arrays
</h4></div></div></div><p>
</p><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">
<b class="fsfunc">pltr1</b>
(</code></td><td><var class="pdparam">x</var>, </td></tr><tr><td> </td><td><var class="pdparam">y</var>, </td></tr><tr><td> </td><td><var class="pdparam">tx</var>, </td></tr><tr><td> </td><td><var class="pdparam">ty</var>, </td></tr><tr><td> </td><td><var class="pdparam">pltr_data</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div><p>
</p><p>Linear interpolation for matrix index to world coordinate mapping using
one-dimensional <code class="literal">x</code> and <code class="literal">y</code>
coordinate arrays. This routine can be used for the
<a class="link" href="c.html#PLTRANSFORM_callback-type"><code class="function">PLTRANSFORM_callback</code></a> argument of <a class="link" href="plcont.html" title="plcont: Contour plot"><code class="function">plcont</code></a>, <a class="link" href="plshade.html" title="plshade: Shade individual region on the basis of value"><code class="function">plshade</code></a>, <a class="link" href="plshades.html" title="plshades: Shade regions on the basis of value"><code class="function">plshades</code></a>,
<a class="link" href="plimagefr.html" title="plimagefr: Plot a 2D matrix using cmap1"><code class="function">plimagefr</code></a>, or <a class="link" href="plvect.html" title="plvect: Vector plot"><code class="function">plvect</code></a>.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term">
<em class="parameter"><code>x</code></em>
(<code class="literal"><a class="link" href="c.html#PLFLT-type"><code class="function">PLFLT</code></a></code>, input)
</span></dt><dd><p>
X index of matrix.
</p></dd><dt><span class="term">
<em class="parameter"><code>y</code></em>
(<code class="literal"><a class="link" href="c.html#PLFLT-type"><code class="function">PLFLT</code></a></code>, input)
</span></dt><dd><p>
Y index of matrix.
</p></dd><dt><span class="term">
<em class="parameter"><code>tx</code></em>
(<code class="literal"><a class="link" href="c.html#PLFLT_NC_SCALAR-type"><code class="function">PLFLT_NC_SCALAR</code></a></code>, output)
</span></dt><dd><p>
Transformed x value in world coordinates corresponding to x index of matrix.
</p></dd><dt><span class="term">
<em class="parameter"><code>ty</code></em>
(<code class="literal"><a class="link" href="c.html#PLFLT_NC_SCALAR-type"><code class="function">PLFLT_NC_SCALAR</code></a></code>, output)
</span></dt><dd><p>
Transformed y value in world coordinates corresponding to y index of matrix.
</p></dd><dt><span class="term">
<em class="parameter"><code>pltr_data</code></em>
(<code class="literal"><a class="link" href="c.html#PLPointer-type"><code class="function">PLPointer</code></a></code>, input)
</span></dt><dd><p>A pointer to additional data that is passed as an
argument to PLplot routines that potentially could use the <a class="link" href="pltr1.html" title="pltr1: Linear interpolation for matrix index to world coordinate mapping using singly dimensioned coordinate arrays"><code class="function">pltr1</code></a>
callback (i.e., <a class="link" href="plcont.html" title="plcont: Contour plot"><code class="function">plcont</code></a>, <a class="link" href="plimagefr.html" title="plimagefr: Plot a 2D matrix using cmap1"><code class="function">plimagefr</code></a>, <a class="link" href="plshade.html" title="plshade: Shade individual region on the basis of value"><code class="function">plshade</code></a>,
<a class="link" href="plshades.html" title="plshades: Shade regions on the basis of value"><code class="function">plshades</code></a>, and <a class="link" href="plvect.html" title="plvect: Vector plot"><code class="function">plvect</code></a>); which then internally pass that argument on
to this callback.</p></dd></dl></div><p>
This function is used in C examples 9 and 16.
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="pltr0.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="API-C.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="pltr2.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">
<code class="function">pltr0</code>: Identity transformation for matrix index to world
coordinate mapping
</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">
<code class="function">pltr2</code>: Linear interpolation for grid to world
mapping using doubly dimensioned coordinate arrays (row-major order
as per normal C 2d arrays)
</td></tr></table></div></body></html>
|