Esempio n. 1
0
    xticks=[100, 104, 108, 112, 116, 120],
    yticks=[-35, -31, -27, -23, -19],
    fontsize=20,
    linewidth=1,
    color="gray",
    alpha=0.3,
    linestyle="--",
    grid=True,
)
cax1 = plt.axes([0.1, 0.06, 0.4, 0.03])
cart.set_cbar(
    cs1,
    cax1,
    fig,
    orientation="horizontal",
    extend="both",
    cbar_label="$m\,s^{-1}$",
    nbins=7,
    fontsize=20,
    cbar_ticks=[],
    task="regular",
)
cart.subplot_label(
    ax1,
    xdist_label=0.1,
    ydist_label=0.88,
    subplot_label="A",
    form="box",
    fs_shade=28,
    fs_main=20,
    color="black",
)
Esempio n. 2
0
    yticks=[-60, -40, -20, 0, 20, 40, 60],
    xlabels=False,
    ylabels=False,
    grid=False,
    fontsize=12,
    color="black",
)
cax2 = plt.axes([0.91, 0.712, 0.013, 0.16])
cart.set_cbar(
    cs2,
    cax2,
    fig,
    orientation="vertical",
    extend="both",
    cbar_label="$months$",
    nbins=7,
    fontsize=12,
    cbar_ticks=[
        np.arange(-np.pi, np.pi + 0.5, (np.pi + np.pi) / 6).tolist(),
        ["Jun", "Aug", "Oct", "Dec", "Feb", "Apr", "Jun"],
    ],
    task="custom ticks",
)
cart.subplot_label(
    ax2,
    xdist_label=0.1,
    ydist_label=0.88,
    subplot_label="B",
    form="box",
    fs_shade=28,
    fs_main=18,
Esempio n. 3
0
    projection=ccrs.PlateCarree(),
    xticks=xticks,
    yticks=yticks,
    xlabels=False,
    ylabels=True,
    grid=False,
    fontsize=14,
    color="black",
)
cax1 = plt.axes([0.40, 0.07, 0.2, 0.02])
cart.set_cbar(
    cs1,
    cax1,
    fig,
    orientation="horizontal",
    extend="min",
    cbar_label="$\%$",
    nbins=6,
    fontsize=14,
    cbar_ticks=[],
    task="regular",
)
cart.subplot_label(
    ax1,
    xdist_label=0.1,
    ydist_label=0.86,
    subplot_label="A",
    form="box",
    fs_shade=28,
    fs_main=18,
    color="black",
)
Esempio n. 4
0
    yticks=yticks,
    xlabels=False,
    ylabels=True,
    grid=False,
    fontsize=15,
    color="black",
)
cax1 = plt.axes([0.82, 0.56, 0.015, 0.28])
cart.set_cbar(
    cs1,
    cax1,
    fig,
    orientation="vertical",
    extend="both",
    cbar_label="$months$",
    nbins=7,
    fontsize=15,
    cbar_ticks=[
        np.arange(-np.pi, np.pi + 0.5, (np.pi + np.pi) / 6).tolist(),
        ["", "Jun", "Aug", "Oct", "Dec", "Feb", "Apr", "Jun"],
    ],
    task="custom ticks",
)
cart.subplot_label(
    ax1,
    xdist_label=0.05,
    ydist_label=0.9,
    subplot_label="A",
    form="box",
    fs_shade=28,
    fs_main=18,
Esempio n. 5
0
    projection=ccrs.PlateCarree(),
    xticks=xticks,
    yticks=yticks,
    xlabels=True,
    ylabels=False,
    grid=False,
    fontsize=15,
    color="black",
)
cax2 = plt.axes([0.36, 0.36, 0.3, 0.02])
cart.set_cbar(
    cs2,
    cax2,
    fig,
    orientation="horizontal",
    extend="both",
    cbar_label="$\%$",
    nbins=6,
    fontsize=20,
    cbar_ticks=[],
    task="regular",
)
cart.subplot_label(
    ax2,
    xdist_label=0.1,
    ydist_label=0.88,
    subplot_label="B",
    form="box",
    fs_shade=28,
    fs_main=18,
    color="black",
)
Esempio n. 6
0
    fontsize=15,
    linewidth=1,
    color="gray",
    alpha=0.7,
    linestyle="--",
    grid=True,
)
cax1 = plt.axes([0.1, 0.06, 0.4, 0.03])
cart.set_cbar(
    cs1,
    cax1,
    fig,
    orientation="horizontal",
    extend="both",
    cbar_label="$months$",
    nbins=None,
    fontsize=18,
    cbar_ticks=[
        np.arange(-np.pi, np.pi + 0.5, (np.pi + np.pi) / 6).tolist(),
        ["Jun", "Aug", "Oct", "Dec", "Feb", "Apr", "Jun"],
    ],
    task="custom ticks",
)
cart.subplot_label(
    ax1,
    xdist_label=0.1,
    ydist_label=0.88,
    subplot_label="A",
    form="box",
    fs_shade=28,
    fs_main=20,
Esempio n. 7
0
    projection=ccrs.PlateCarree(),
    xticks=[0, 45, 90, 135, -360, -180, -135, -90, -45 - 0],
    yticks=[-60, -40, -20, 0, 20, 40, 60],
    xlabels=False,
    ylabels=True,
    grid=False,
    fontsize=12,
    color="black",
)
cax1 = plt.axes([0.49, 0.57, 0.013, 0.24])
cart.set_cbar(
    cs1,
    cax1,
    fig,
    orientation="vertical",
    extend="both",
    cbar_label="$m$",
    nbins=9,
    fontsize=12,
    cbar_ticks=[],
    task="regular",
)
cart.subplot_label(
    ax1,
    xdist_label=0.1,
    ydist_label=0.86,
    subplot_label="A",
    form="box",
    fs_shade=28,
    fs_main=18,
    color="black",
)