| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 803 |
|
This chapter provides an overview of the PGplotter tool, primarily by providing several straightforward examples which can be used to learn the basic line plotting capabilities. An example of drawing a simple raster plot is also shown, although images and arrays are better displayed in using the Viewer tool.
The aim of this document is to get users started with simple plotting. The User Reference Manual is the primary source of information about tools, and it includes comprehensive details on the PGplotter and the PGplotwidget. The Glish User Manual contains details on the native PGPLOT bindings in Glish, which implement all of the basic functions available in the PGPLOT code library.
The plotting hierarchy is that the PGplotter tool provides a standalone plotting canvas. It is built with the PGplotwidget tool, which must be embedded in some parent frame (provided in this case by the PGplotter). In turn, the PGplotwidget tool is implemented via the native Glish PGPLOT function calls.
Thus, a PGplotwidget tool has access to all of the native Glish PGPLOT functions. In turn, the higher-level PGplotter tool has access to all functions that its PGplotwidget tool has.
When using a PGplotter or PGplotwidget tool, to access the native Glish PGPLOT routines, it is only required that the '->' be replaced by '.', as shown in the examples which follow.