/jpgraph/docs/classref/Contour.html

https://gitlab.com/track-iot/ui · HTML · 230 lines · 161 code · 58 blank · 11 comment · 0 complexity · bffdf953a6552d7231558833bf3e624b MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><style type="text/css">
  2. <!--
  3. A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: none; color: #000000}
  4. A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: none; color: #000000}
  5. A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: underline; color: #FF0000}
  6. A.no:link {font-family:inherit; font-size: inhreit;text-decoration: none; color: #000000}
  7. A.no:visited {font-family:inherit; font-size: inherit;text-decoration: none; color: #000000}
  8. A.no:hover {font-family:inherit; font-size: inherit;text-decoration: none; color: #000000}
  9. th {font-family: helvetica, arial; color : black; font-size:90%; background : #b7c8b7; border-right:black solid 1pt; border-bottom:black solid 1pt;}
  10. td {font-family: helvetica, arial; color : black; font-size:90%; background : white; border-right:black solid 1pt; border-bottom:black solid 1pt;}
  11. //-->
  12. </style></HEAD><hr><div style="padding-left:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;background-color:#deaa87;font-family:courier new;font-size:16pt;">Class <a class="no" name="_C_CONTOUR"><b>Contour</b></a></div>
  13. <i>(Defined in: jpgraph_contour.php : 22)</i><br>&nbsp;<br><table cellspaceing=0 cellpadding=4 style="border:solid #303030 1px;"><tr><td align="center" style="background:lightgray;" >&nbsp;<a href="Contour.html" style="font-family:arial;font-weight:bold;color:darkblue;">Contour</a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="Contour.html#_CONTOUR_ADJUSTDATAPOINTVALUES">adjustDataPointValues()</a>&nbsp;<br>
  14. &nbsp;<a href="Contour.html#_CONTOUR_CALCULATECOLORS">CalculateColors()</a>&nbsp;<br>
  15. &nbsp;<a href="Contour.html#_CONTOUR_DETERMINEISOBAREDGECROSSINGS">determineIsobarEdgeCrossings()</a>&nbsp;<br>
  16. &nbsp;<a href="Contour.html#_CONTOUR_GETCROSSINGCOORD">getCrossingCoord()</a>&nbsp;<br>
  17. &nbsp;<a href="Contour.html#_CONTOUR_GETISOBARS">getIsobars()</a>&nbsp;<br>
  18. &nbsp;<a href="Contour.html#_CONTOUR_GETMINMAXVAL">getMinMaxVal()</a>&nbsp;<br>
  19. &nbsp;<a href="Contour.html#_CONTOUR_ISOBARHCROSSING">isobarHCrossing()</a>&nbsp;<br>
  20. &nbsp;<a href="Contour.html#_CONTOUR_ISOBARVCROSSING">isobarVCrossing()</a>&nbsp;<br>
  21. &nbsp;<a href="Contour.html#_CONTOUR_RESETEDGEMATRICES">resetEdgeMatrices()</a>&nbsp;<br>
  22. &nbsp;<a href="Contour.html#_CONTOUR_SETINVERT">SetInvert()</a>&nbsp;<br>
  23. &nbsp;<a href="Contour.html#_CONTOUR_USEHIGHCONTRASTCOLOR">UseHighContrastColor()</a>&nbsp;<br>
  24. &nbsp;<a href="Contour.html#_CONTOUR___CONSTRUCT">__construct()</a>&nbsp;<br>
  25. </td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div> <p> &nbsp;
  26. <hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
  27. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_ADJUSTDATAPOINTVALUES"><span style="color:#555555;">Contour ::</span><br><b>adjustDataPointValues</b>()</a></div>
  28. <span style='font-family:arial;font-size:95%;'><i>// In order to avoid numerical problem when two vertices are very close// we have to check and avoid dividing by close to zero denumerator.</i></span><p>
  29. <br>
  30. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  31. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_CALCULATECOLORS"><span style="color:#555555;">Contour ::</span><br><b>CalculateColors</b>()</a></div>
  32. <span style='font-family:arial;font-size:95%;'><i></i></span><p>
  33. <br>
  34. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  35. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_DETERMINEISOBAREDGECROSSINGS"><span style="color:#555555;">Contour ::</span><br><b>determineIsobarEdgeCrossings</b>($aIsobar)</a></div>
  36. <span style='font-family:arial;font-size:95%;'><i>//'isobarVCrossing: Col index too large</i></span><p>
  37. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  38. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  39. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  40. <span style="color: #0000BB">$aIsobar</span>
  41. </span>
  42. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  43. </table>
  44. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  45. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_GETCROSSINGCOORD"><span style="color:#555555;">Contour ::</span><br><b>getCrossingCoord</b>($aRow, $aCol, $aEdgeDir, $aIsobarVal)</a></div>
  46. <span style='font-family:arial;font-size:95%;'><i>// We now have the bottom and rightmost edges unsearched</i></span><p>
  47. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  48. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  49. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  50. <span style="color: #0000BB">$aRow</span>
  51. </span>
  52. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  53. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  54. <span style="color: #0000BB">$aCol</span>
  55. </span>
  56. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  57. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  58. <span style="color: #0000BB">$aEdgeDir</span>
  59. </span>
  60. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  61. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  62. <span style="color: #0000BB">$aIsobarVal</span>
  63. </span>
  64. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  65. </table>
  66. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  67. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_GETISOBARS"><span style="color:#555555;">Contour ::</span><br><b>getIsobars</b>()</a></div>
  68. <span style='font-family:arial;font-size:95%;'><i>// Use only blue/red scale</i></span><p>
  69. <br>
  70. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  71. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_GETMINMAXVAL"><span style="color:#555555;">Contour ::</span><br><b>getMinMaxVal</b>()</a></div>
  72. <span style='font-family:arial;font-size:95%;'><i></i></span><p>
  73. <br>
  74. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  75. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_ISOBARHCROSSING"><span style="color:#555555;">Contour ::</span><br><b>isobarHCrossing</b>($aRow, $aCol, $aIsobar)</a></div>
  76. <span style='font-family:arial;font-size:95%;'><i></i></span><p>
  77. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  78. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  79. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  80. <span style="color: #0000BB">$aRow</span>
  81. </span>
  82. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  83. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  84. <span style="color: #0000BB">$aCol</span>
  85. </span>
  86. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  87. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  88. <span style="color: #0000BB">$aIsobar</span>
  89. </span>
  90. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  91. </table>
  92. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  93. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_ISOBARVCROSSING"><span style="color:#555555;">Contour ::</span><br><b>isobarVCrossing</b>($aRow, $aCol, $aIsobar)</a></div>
  94. <span style='font-family:arial;font-size:95%;'><i>//'ContourPlot Internal Error: isobarHCrossing: Row index too large (%d)'</i></span><p>
  95. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  96. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  97. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  98. <span style="color: #0000BB">$aRow</span>
  99. </span>
  100. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  101. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  102. <span style="color: #0000BB">$aCol</span>
  103. </span>
  104. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  105. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  106. <span style="color: #0000BB">$aIsobar</span>
  107. </span>
  108. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  109. </table>
  110. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  111. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_RESETEDGEMATRICES"><span style="color:#555555;">Contour ::</span><br><b>resetEdgeMatrices</b>()</a></div>
  112. <span style='font-family:arial;font-size:95%;'><i></i></span><p>
  113. <br>
  114. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  115. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_SETINVERT"><span style="color:#555555;">Contour ::</span><br><b>SetInvert</b>($aFlg)</a></div>
  116. <span style='font-family:arial;font-size:95%;'><i>//'Number of colors must equal the number of isobar lines specified';</i></span><p>
  117. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  118. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  119. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  120. <span style="color: #0000BB">$aFlg</span>
  121. </span>
  122. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  123. <span style="color: #0000BB">true</span>
  124. </span>
  125. </td><td>No description available</td></tr>
  126. </table>
  127. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  128. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR_USEHIGHCONTRASTCOLOR"><span style="color:#555555;">Contour ::</span><br><b>UseHighContrastColor</b>($aFlg, $aBW)</a></div>
  129. <span style='font-family:arial;font-size:95%;'><i></i></span><p>
  130. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  131. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  132. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  133. <span style="color: #0000BB">$aFlg</span>
  134. </span>
  135. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  136. <span style="color: #0000BB">true</span>
  137. </span>
  138. </td><td>No description available</td></tr>
  139. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  140. <span style="color: #0000BB">$aBW</span>
  141. </span>
  142. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  143. <span style="color: #0000BB">false</span>
  144. </span>
  145. </td><td>No description available</td></tr>
  146. </table>
  147. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
  148. <p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_CONTOUR___CONSTRUCT"><span style="color:#555555;">Contour ::</span><br><b>__construct</b>($aMatrix, $aIsobars, $aColors)</a></div>
  149. <span style='font-family:arial;font-size:95%;'><i>// File: JPGRAPH_CONTOUR.PHP// Description: Contour plot// Created: 2009-03-08// Ver: $Id: jpgraph_contour.php 1576 2009-07-13 10:35:22Z ljp $//// Copyright (c) Aditus Consulting. All rights reserved.//==================================</i></span><p>
  150. <table cellspacing=0 style='border:black solid 1pt;' width=100%>
  151. <tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
  152. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  153. <span style="color: #0000BB">$aMatrix</span>
  154. </span>
  155. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
  156. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  157. <span style="color: #0000BB">$aIsobars</span>
  158. </span>
  159. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  160. <span style="color: #0000BB">10</span>
  161. </span>
  162. </td><td>No description available</td></tr>
  163. <tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  164. <span style="color: #0000BB">$aColors</span>
  165. </span>
  166. </td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
  167. <span style="color: #0000BB">null</span>
  168. </span>
  169. </td><td>No description available</td></tr>
  170. </table>
  171. <div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p> <hr> <p></html>