mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2026-02-01 17:20:51 +00:00
bugfix in removeFigure function
This commit is contained in:
parent
1287cdeea7
commit
8baeb75c05
@ -286,15 +286,15 @@ public class FigureDockable extends DefaultSingleCDockable {
|
||||
PythonInteractiveInterpreter interp = parent.getConsoleDockable().getInterpreter();
|
||||
if (tabbedPanel.getTabCount() == 0) {
|
||||
try {
|
||||
interp.exec("mipylib.plotlib.miplot.chartpanel = None");
|
||||
interp.exec("mipylib.plotlib.miplot.c_plot = None");
|
||||
interp.exec("mipylib.plotlib.miplot.g_figure = None");
|
||||
interp.exec("mipylib.plotlib.miplot.g_axes = None");
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
interp.set("cp", getCurrentFigure());
|
||||
interp.exec("mipylib.plotlib.miplot.chartpanel = cp");
|
||||
interp.exec("mipylib.plotlib.miplot.c_plot = None");
|
||||
interp.exec("mipylib.plotlib.miplot.g_figure = cp");
|
||||
interp.exec("mipylib.plotlib.miplot.g_axes = None");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user