diff --git a/Code/Mantid/MantidPlot/pymantidplot/proxies.py b/Code/Mantid/MantidPlot/pymantidplot/proxies.py index 90099772f1d850181a11b100b733da15ba0c14a3..1e3b969565e4d91134def5a579b7004a930837be 100644 --- a/Code/Mantid/MantidPlot/pymantidplot/proxies.py +++ b/Code/Mantid/MantidPlot/pymantidplot/proxies.py @@ -279,7 +279,7 @@ class Layer(QtProxyObject): # The only purpose of listing them here is that these will be returned by this class' __dir()__, and # shown interactively, while the ones not listed and/or overloaded here may not be shown in ipython, etc. additional_methods = ['logLogAxes', 'logXLinY', 'logXLinY', - 'removeLegend', 'saveImage', 'setAxisScale', 'setCurveLineColor', 'setCurveLineStyle', + 'removeLegend', 'export', 'setAxisScale', 'setCurveLineColor', 'setCurveLineStyle', 'setCurveLineWidth', 'setCurveSymbol', 'setScale', 'setTitle', 'setXTitle', 'setYTitle'] def __init__(self, toproxy): diff --git a/Code/Mantid/MantidPlot/pymantidplot/pyplot.py b/Code/Mantid/MantidPlot/pymantidplot/pyplot.py index 78254a217a834b431def7b0f1a414869f43a46fd..ab5680c8b8548a78896dc8f70a889ea7f3f45227 100644 --- a/Code/Mantid/MantidPlot/pymantidplot/pyplot.py +++ b/Code/Mantid/MantidPlot/pymantidplot/pyplot.py @@ -686,8 +686,8 @@ class Figure(): """ if not name: raise ValueError("Error: you need to specify a non-empty file name") - l = _graph.activeLayer() - l.saveImage(name); + l = self._graph.activeLayer() + l.export(name); @classmethod def fig_seq(cls): @@ -1561,4 +1561,4 @@ def savefig(name): if not name: raise ValueError("Error: you need to specify a non-empty file name") l = __last_fig()._graph.activeLayer() - l.saveImage(name); + l.export(name);