From: Vince D. <vi...@sa...> - 2002-07-03 13:47:32
|
The first tcl demo, 'x01.tcl' has a problem if it is called after drawing a previous demo --- the four plots overwrite whatever was previously drawn rather than clearing the plot page first. My reading of the manual: Advances to the next subpage if sub=0, performing a page advance if there are no remaining subpages on the current page. If subwindowing isn't being used, pladv(0) will always advance the page. If sub>0, PLplot switches to the specified subpage. Note that this allows you to overwrite a plot on the specified subpage; if this is not what you intended, use pleop followed by plbop to first advance the page. This routine is called automatically (with sub=0) by plenv, but if plenv is not used, pladv must be called after initializing PLplot but before defining the viewport. suggests that '$w cmd pladv 0' (as used in x02.tcl, in fact) is the right fix to this problem. (Since x01.tcl doesn't use plenv, "pladv must be called..."). Is this right? -- Vince <http://www.santafe.edu/~vince> |