return PyLong_AsLong(ret);
}
+ void CurvePlot::SetCurrentPlotSet(PlotID plot_set_id)
+ {
+ PyLockWrapper lock;
+ PyObject * cont = GetInstance()->_impl->_controller;
+
+ PyObjWrapper ret(
+ PyObject_CallMethod(cont, (char *)"SetCurrentPlotSet", (char *)"i", plot_set_id));
+ HandleAndPrintPyError("CurvePlot::SetCurrentPlotSet(): unexpected error!");
+ }
+
bool CurvePlot::IsValidPlotSetID(PlotID plot_set_id)
{
PyLockWrapper lock;
static PlotID GetCurrentPlotSetID();
+ static void SetCurrentPlotSet(PlotID plot_set_id=-1);
+
static void ToggleCurveBrowser(bool with_curve_browser);
static bool IsValidPlotSetID(PlotID plot_set_id=-1);
j = xM-xm
if np.isfinite(xm) and np.isfinite(xM) and np.isfinite(ym) and np.isfinite(yM):
self._mplAxes.axis([xm-j*self.AUTOFIT_MARGIN, xM+j*self.AUTOFIT_MARGIN,
- ym-i*self.AUTOFIT_MARGIN, yM+i*self.AUTOFIT_MARGIN])
+ ym-i*self.AUTOFIT_MARGIN, yM+i*self.AUTOFIT_MARGIN])
if repaint:
self.repaint()
for crv_id, cv in list(self._curveViews.items()):
if (crv_id != self._currCrv.getID()) :
cv.setAlpha(0.05)
- self.showHideLegend() # redo legend
+ self.repaint()
+ self.showHideLegend(repaint=False) # redo legend
return
def showHideLegend(self, actionChecked=None, repaint=True):