From 640631f4166fc7e083e9adf915ea80f3ee5713b7 Mon Sep 17 00:00:00 2001 From: Anna Wirbel Date: Tue, 13 Sep 2022 14:41:07 +0200 Subject: [PATCH] update figure title --- avaframe/out3Plot/statsPlots.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/avaframe/out3Plot/statsPlots.py b/avaframe/out3Plot/statsPlots.py index 067936876..ebe42322e 100644 --- a/avaframe/out3Plot/statsPlots.py +++ b/avaframe/out3Plot/statsPlots.py @@ -305,9 +305,10 @@ def plotProbMap(avaDir, inDir, cfgFull, demPlot=False): extentOption=False, constrainedData=True) dataPlot = np.ma.masked_where(dataConstrained == 0.0, dataConstrained) - # create figure + # create figure and add title fig = plt.figure(figsize=(pU.figW*2, pU.figH)) - suptitle = fig.suptitle(cfg['name'], fontsize=14, color='0.5') + fullTitle = cfg['name'] + ' based on %s $>$ %s %s' % (cfgFull['GENERAL']['peakVar'], cfgFull['GENERAL']['peakLim'], cfgFull['GENERAL']['unit']) + suptitle = fig.suptitle(fullTitle, fontsize=14, color='0.5') ax1 = fig.add_subplot(121) # set extent in meters using cellSize @@ -350,7 +351,6 @@ def plotProbMap(avaDir, inDir, cfgFull, demPlot=False): pU.addColorBar(im1, ax1, ticks, unit) title = str('%s' % cfg['name']) - ax1.set_title(title) ax1.set_xlabel('x [m]') ax1.set_ylabel('y [m]')