Hello,

I have been looking at the issues that arose with running the examples
in Tcl or Tk one after another and I have an almost working solution
now (based on examples/tk/standard_examples.in and
examples/tk/tkdemos.tcl). Here is the idea:

tcldemos.tcl (adapted from examples/tk/tkdemos.tcl, added a few
commands to get PLplot back to its initial settings):
#
# Comments ...
#
for {set i 1} {$i <= 31} {incr i} {
     set demo x[format "%02d" $i]
     source $demo.tcl
     # restore defaults
     proc $i {} "
         $demo
         loopback cmd pleop
         loopback cmd plcol0 1
         loopback cmd plsori 0
         loopback cmd plspal0 cmap0_default.pal
         loopback cmd plspal1 cmap1_default.pal 1
         loopback cmd plstransform NULL
     "
}

standard_examples.in:
#
# Comments ...
#
source tcldemos.tcl
plinit
1
2
3
4
5
6
7
8
9
10
...

(Just as an illustration)

In the process I noticed:

- Example x17 (the stripchart demo) does not update the axis properly
   - they are not cleaned up. This is the case for the C version too.

- Example x19 sets the map transformation, but this influences the
   examples x20 and x21 as well. Setting the transformation to NULL
   makes the effect go away. Was that to be expected?

- Example x22 crashes the Tcl shell if run after example x21. If run
   standalone, example x22 is fine. I see messages (from x22) that I
   need to initialise PLplot via plinit first.
   On my system, example x21 can not use a number of the interpolation
   methods - could this interfere? (Something I need to investigate
   further)

- If I load the examples (by sourcing the example scripts) and then
   try to run the examples one by one, just typing in the numbers
   myself, at some point the graphics window gets stuck. This is
   most probably due to the somewhat awkward way Windows handles
   consoles and graphical windows, so I am not going to worry
   about that. Just thought I'd mention it.

Well, that concludes my progress report. To be continued.
Any light shed on the issues with examples x19 and x21 will be
appreciated.

Regards,

Arjen

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to