From 0f66b9492f968fc6ec70831d7489818e167925af Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (l)" <j.wuttke@fz-juelich.de> Date: Sat, 11 May 2019 11:02:46 +0200 Subject: [PATCH] move initialization into try block (workaround for Windows build server) --- Wrap/python/plot_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Wrap/python/plot_utils.py b/Wrap/python/plot_utils.py index 114baf1f9f7..0b9af3ebd24 100644 --- a/Wrap/python/plot_utils.py +++ b/Wrap/python/plot_utils.py @@ -19,16 +19,15 @@ try: # workaround for build servers import numpy as np from matplotlib import pyplot as plt from matplotlib import gridspec, colors + global_cmap = plt.get_cmap("gnuplot2") except Exception as e: print("In plot_utils.py: {:s}".format(str(e))) - label_fontsize = 16 -global_cmap = plt.get_cmap("gnuplot2") def set_cmap(cmap): """ - Sets the default color map. + Overwrites the color map to be used in 2D plots. Argument must be either the name of a matplotlib built-in color map, or it must be of type matplotlib.colors.Colormap. """ -- GitLab