コード例 #1
0
def test_region_cbar_args():
    df = IamDataFrame(os.path.join(TEST_DATA_DIR, 'plot_iso_data.csv'))
    fig, ax = plt.subplots(
        subplot_kw={'projection': cartopy.crs.PlateCarree()}, figsize=(10, 7))
    (df.region_plot(
        ax=ax,
        cbar={'extend': 'both'},
    ))
    return fig
コード例 #2
0
def test_region_crs():
    df = IamDataFrame(os.path.join(TEST_DATA_DIR, 'plot_iso_data.csv'))
    crs = cartopy.crs.Robinson()
    fig, ax = plt.subplots(subplot_kw={'projection': crs}, figsize=(10, 7))
    (df.region_plot(
        ax=ax,
        crs=crs,
        cbar=False,
    ))
    return fig
コード例 #3
0
def test_region_cmap():
    df = IamDataFrame(os.path.join(TEST_DATA_DIR, 'plot_iso_data.csv'))
    fig, ax = plt.subplots(
        subplot_kw={'projection': cartopy.crs.PlateCarree()}, figsize=(10, 7))
    (df.region_plot(
        ax=ax,
        cmap='magma_r',
        cbar=False,
    ))
    return fig