Chapter 13. Using PLplot from Tcl

Table of Contents

Motivation for the Tcl Interface to PLplot
Overview of the Tcl Language Binding
The PLplot Tcl Matrix Extension
Using Tcl Matrices from Tcl
Using Tcl Matrices from C
Using Tcl Matrices from C++
Extending the Tcl Matrix facility
Contouring and Shading from Tcl
Drawing a Contour Plot from Tcl
Drawing a Shaded Plot from Tcl
Understanding the Performance Characteristics of Tcl

PLplot has historically had C and Fortran language bindings. PLplot version 5.0 introduces a plethora of new programming options including C++ (described earlier) and several script language bindings. The Tcl interface to PLplot (which the PLplot maintainers regard as the primary script language binding) is described in this chapter, with further discussion of Tcl related issues following in additional chapters. But Tcl is certainly not the only script language option. Bindings to Perl, Python, and Scheme (which is actually another compiled language, but still has some of the flavor of a VHLL) are in various stages of completion, and are described in separate chapters. Use the one that suits you best--or try them all!