Hi, I’m trying to get my date format to display three character abbreviated month, but I’m having no luck. Feel like I’m just missing a minor something here:
region = [clim_mean.index[0].strftime("%Y-%m-%d"),
clim_mean.index[-1].strftime("%Y-%m-%d"),
0, 1000]
projection = f"X20c/15c"
frame = ["WS", "sxa1Of10D", "pxa1o", "sy+lFIA (1000-km^2)"]#, "pya1+ucm"]
print(region)
pygmt.config(MAP_FRAME_TYPE = "plain",
FONT_TITLE = "18p,Helvetica-Bold",
FONT_LABEL = "20p,Helvetica",
FONT_ANNOT_PRIMARY = "20p,Helvetica",
MAP_TICK_LENGTH_PRIMARY = "0.1c",
FORMAT_DATE_MAP = "o",
FORMAT_DATE_OUT = "o",
FORMAT_TIME_PRIMARY_MAP = "c")
fig = pygmt.Figure()
fig.basemap(region=region, projection=projection, frame=frame)
fig.plot(x = np.concatenate([clim_min.index, clim_max.index[::-1]]),
y = np.concatenate([clim_min.values, clim_max.values[::-1]]),
fill = f"{line_color}@80",
close = True,
transparency = 60,)
fig.plot(x = clim_mean.index,
y = clim_mean.values,
pen = f"2p,{line_color}",
label = f"{leg_lab}")
fig.legend(position="JTL+jTL+o0.2c+w20c", box=True)
fig.show()