Skip to content
Snippets Groups Projects
Commit 0f66b949 authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

move initialization into try block (workaround for Windows build server)

parent aab1340b
No related branches found
No related tags found
No related merge requests found
...@@ -19,16 +19,15 @@ try: # workaround for build servers ...@@ -19,16 +19,15 @@ try: # workaround for build servers
import numpy as np import numpy as np
from matplotlib import pyplot as plt from matplotlib import pyplot as plt
from matplotlib import gridspec, colors from matplotlib import gridspec, colors
global_cmap = plt.get_cmap("gnuplot2")
except Exception as e: except Exception as e:
print("In plot_utils.py: {:s}".format(str(e))) print("In plot_utils.py: {:s}".format(str(e)))
label_fontsize = 16 label_fontsize = 16
global_cmap = plt.get_cmap("gnuplot2")
def set_cmap(cmap): 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, Argument must be either the name of a matplotlib built-in color map,
or it must be of type matplotlib.colors.Colormap. or it must be of type matplotlib.colors.Colormap.
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment