Hi Robert, I can duplicate this bug/feature here on Mac OS X with the latest PLplot revision. You could use
pls->adv(0); instead of the clear(); statement. This will clear the plot, since a new one is started. I have to to look at the clear function in plplot what is supposed to happen. Regards, Werner On 09.12.2008, at 10:28, Robert Pollak wrote: > Hello Werner, > > I am just trying to clear a plot to prepare plotting of a modified > diagram. > > How is this done? When I try it as follows, the plot window is not > cleared, and the new title text superimposes the old one instead. > > Best regards, > Robert > > > --- examples/c++/wxPLplotDemo.cpp (revision 8888) > +++ examples/c++/wxPLplotDemo.cpp (working copy) > @@ -205,4 +205,10 @@ > { > wxMessageBox( _T("This is the About dialog of the wxPLplot demo. > \n"), > _T("About wxPLplot"), > wxOK | wxICON_INFORMATION, this ); > + > + wxPLplotstream* pls=plotwindow->GetStream(); > + > + pls->clear(); > + pls->lab( "x", "y", "An Empty Plot" ); > + plotwindow->RenewPlot(); > } -- Dr. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria email: [EMAIL PROTECTED] web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general