From: vtn Date: Mon, 22 Apr 2013 11:50:28 +0000 (+0000) Subject: #283: Clear curves in plot2d X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2876f044f0be0a86f2de7e172739b87e18aefa97;p=modules%2Fgui.git #283: Clear curves in plot2d --- diff --git a/src/Plot2d/Plot2d_Curve.cxx b/src/Plot2d/Plot2d_Curve.cxx index 0aae4b04e..243e98952 100755 --- a/src/Plot2d/Plot2d_Curve.cxx +++ b/src/Plot2d/Plot2d_Curve.cxx @@ -159,6 +159,8 @@ void Plot2d_Curve::updatePlotItem( QwtPlotItem* theItem ) } else { aCurve->clearDeviationData(); } + } else { + aCurve->setData( NULL, NULL, 0 ); } } diff --git a/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip b/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip index cde76dc33..66a6b5855 100644 --- a/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip +++ b/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip @@ -248,6 +248,9 @@ public: sipCpp->addPoint(aX, aY); } %End + void insertPoint( int, double, double ); + void deletePoint( int ); + void clearAllPoints(); }; class SalomePyQt