From: Alan W. I. <ir...@be...> - 2002-07-03 15:29:16
|
Thanks for drawing that problem to my attention. I confirm it here as well with the sequence of commands: pltcl -dev xwin plinit source tcldemos.tcl 2 1 However, inserting an extra pladv is only a superficial fix that will cause problems elsewhere (IMO) because in fact x01.tcl does call pladv already (in plot1 and plot2 indirectly via plenv and directly in plot3). I have now narrowed the problem down to plssub. If you comment that out the overwriting problem disappears. So perhaps there is a deeper lying bug in plssub that should be addressed. I will look deeper into this. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ On Wed, 3 Jul 2002, Vince Darley wrote: > 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> > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > No, I will not fix your computer. > http://thinkgeek.com/sf > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel > |