Direct calls to SIMPLEPLOT
For 32-bit applications, as an alternative to the automatic mode described above, %pl can take the form:
width and height give the pixel dimensions of a SIMPLEPLOT
graphics region. There are no other arguments to go with %pl. Direct calls can
be made to the SIMPLEPLOT library from within a %sc call-back. Alternatively
you could use %lw and put the library calls after the set of winio@ statements
that describe the window.
Here is a simple example that illustrates this approach. Another direct approach using %dw is illustrated
c--The start-up callback
INTEGER FUNCTION StartCB()
c--Create the data.
c--Call SIMPLEPLOT routines to plot the graph.
When you link this program you must link with simple.dll.
Notice that this window cannot be re-sized. As a result the x and y arrays for
the data can be local to the start-up call-back function. Further information
about the SIMPLEPLOT routines that are used in this example can be found in the
documentation provided by BUSS Ltd.