From ab9e95ba80af67b4d89d9904f47c05c313185cc6 Mon Sep 17 00:00:00 2001 From: Martyn Gigg <martyn.gigg@gmail.com> Date: Wed, 15 Jan 2020 12:20:55 +0000 Subject: [PATCH] Remove check for axes.hold It has been deprecated in matplotlib for a long time and is removed in 3.0. Callers should clear the axes themselves if thay is appropriate. --- .../PythonInterface/mantid/plots/modest_image/modest_image.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Framework/PythonInterface/mantid/plots/modest_image/modest_image.py b/Framework/PythonInterface/mantid/plots/modest_image/modest_image.py index 0d3544ff1f6..88631d6fbf8 100644 --- a/Framework/PythonInterface/mantid/plots/modest_image/modest_image.py +++ b/Framework/PythonInterface/mantid/plots/modest_image/modest_image.py @@ -211,8 +211,6 @@ def imshow(axes, X, cmap=None, norm=None, aspect=None, Unlike matplotlib version, must explicitly specify axes """ - if not axes._hold: - axes.cla() if norm is not None: assert(isinstance(norm, mcolors.Normalize)) if aspect is None: -- GitLab