if grid == region: gridregion = grid else: gridregion = grid + region if interp[0:2] == 'WV': fcst_var_name = fcst_var_name + "_" + interp start_date_formatted = datetime.datetime.strptime( start_date_YYYYmmdd, "%Y%m%d").strftime('%d%b%Y') end_date_formatted = datetime.datetime.strptime( end_date_YYYYmmdd, "%Y%m%d").strftime('%d%b%Y') var_info_title = plot_title.get_var_info_title(fcst_var_name, fcst_var_level, fcst_var_extra, 'all') region_title = plot_title.get_region_title(region) date_info_title = plot_title.get_date_info_title( plot_time, valid_time_info, init_time_info, start_date_formatted, end_date_formatted, verif_case) forecast_lead_title = plot_title.get_lead_title(lead) full_title = (stat_plot_name + "\n" + var_info_title + ", " + region_title + "\n" + date_info_title + ", " + forecast_lead_title) ax1.set_title(full_title, loc=title_loc) fig.figimage(noaa_logo_img_array, noaa_logo_xpixel_loc, noaa_logo_ypixel_loc, zorder=1, alpha=noaa_logo_alpha) fig.figimage(nws_logo_img_array, nws_logo_xpixel_loc, nws_logo_ypixel_loc, zorder=1,
# Build formal plot title if grid == region: gridregion = grid else: gridregion = grid+region if interp[0:2] == 'WV': fcst_var_name = fcst_var_name+"_"+interp var_info_title = plot_title.get_var_info_title( fcst_var_name, fcst_var_level, fcst_var_extra, fcst_var_thresh ) region_title = plot_title.get_region_title(region) date_info_title = plot_title.get_date_info_title( plot_time, valid_time_info, init_time_info, str(datetime.date.fromordinal(int( plot_time_dates[0]) ).strftime('%d%b%Y')), str(datetime.date.fromordinal(int( plot_time_dates[-1]) ).strftime('%d%b%Y')), verif_case ) forecast_lead_title = plot_title.get_lead_title(lead) full_title = ( stat_plot_name+"\n" +var_info_title+", "+region_title+"\n" +date_info_title+", "+forecast_lead_title ) ax.set_title(full_title, loc=title_loc) fig.figimage(noaa_logo_img_array, noaa_logo_xpixel_loc, noaa_logo_ypixel_loc, zorder=1, alpha=noaa_logo_alpha) fig.figimage(nws_logo_img_array,