|
From: Robert P. <rob...@jk...> - 2008-12-09 09:31:03
|
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();
}
|