g.gui.tplot.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!-- meta page description: wxGUI Temporal Plot Tool -->
  2. <!-- meta page index: topic_gui|GUI -->
  3. <h2>DESCRIPTION</h2>
  4. The <b>Temporal Plot Tool</b> is a <em><a href="wxGUI.html">wxGUI</a></em>
  5. component that queries and plots the values of a point, defined by a coordinate
  6. pair, in one or more temporal datasets (strds, stvds, str3ds).
  7. <p>
  8. Supported features:
  9. <ul>
  10. <li>temporal datasets with interval/point and absolute/relative time,</li>
  11. <li>show simple linear regression model line with calculated formula
  12. <pre>y = a + b*x (y is dependent variable, a is intercept, b is slope, x is explanatory variable)</pre> and
  13. <pre>r-squared (parameter of goodness-of-fit measure for linear regression model)</pre></li>
  14. <li>pop-up annotations with values information,</li>
  15. <li>query and plot multiple points via the command line,</li>
  16. <li>zoom and pan,</li>
  17. <li>change labels to x and y axes,</li>
  18. <li>add title to the plot, and</li>
  19. <li>export the time series values to a CSV file (x axis data has date time string format,
  20. if you want to use for calculating simple regression model in the
  21. <a href="https://www.r-project.org/">R environment<a>,
  22. <a href="https://www.libreoffice.org/">LibreOffice</a>
  23. etc., you will obtain a different calculated formula <pre>y = a + b*x</pre>
  24. because these software packages use a reference date other than
  25. the UNIX Epoch time (00:00:00 UTC on 1 January 1970)).
  26. </li>
  27. </ul>
  28. <div align="center" style="margin: 10px">
  29. <a href="g_gui_tplot_labels.png">
  30. <img src="tplot.png" width="600" height="367" alt="Temporal Plot Tool" border="0" >
  31. </a><br>
  32. <i>Figure: Temporal Plot Tool</i>
  33. </div>
  34. To optionally add a title to the temporal plot and/or change the x and y
  35. axes labels, first type the desired text and then click <em>Draw</em> as
  36. showed below.
  37. <div align="center" style="margin: 10px">
  38. <a href="g_gui_tplot_labels.png">
  39. <img src="g_gui_tplot_labels.png" width="600" height="482" alt="g.gui.tplot add title and axes labels" border="0">
  40. </a><br>
  41. <i>Figure: Add title and labels to a time series plot</i>
  42. </div>
  43. To export the time series data to a text file (date and data values), type a
  44. name for the file and click <em>Draw</em> again. Optionally, set the
  45. check-box to print headers, as well.
  46. <div align="center" style="margin: 10px">
  47. <a href="g_gui_tplot_export_csv.png">
  48. <img src="g_gui_tplot_export_csv.png" width="600" height="481" alt="g.gui.tplot export time series as csv file" border="0">
  49. </a><br>
  50. <i>Figure: Export time series values to a text file</i>
  51. </div>
  52. <h2>NOTES</h2>
  53. <em>g.gui.tplot</em> requires the Python plotting library
  54. <a href="http://matplotlib.org/">Matplotlib</a>.
  55. <h2>SEE ALSO</h2>
  56. <em>
  57. <a href="temporal.html">Temporal data processing</a><br>
  58. <a href="wxGUI.html">wxGUI</a><br>
  59. <a href="wxGUI.components.html">wxGUI components</a>
  60. </em>
  61. <h2>AUTHOR</h2>
  62. Luca Delucchi,
  63. <a href="http://www.gis.cri.fmach.it">Fondazione Edmund Mach</a>, Italy