From 463439117f8a5fc32f663b9509364a763ad56d5a Mon Sep 17 00:00:00 2001 From: zssherman Date: Thu, 7 Sep 2023 16:54:47 -0500 Subject: [PATCH] FIX: Missing import. --- examples/plotting/plot_choose_a_colormap.py | 3 +-- examples/plotting/plot_ppi_mdv.py | 3 +-- pyart/graph/__init__.py | 3 +++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/plotting/plot_choose_a_colormap.py b/examples/plotting/plot_choose_a_colormap.py index 75301b6500..df854e272c 100644 --- a/examples/plotting/plot_choose_a_colormap.py +++ b/examples/plotting/plot_choose_a_colormap.py @@ -164,5 +164,4 @@ def plot_color_gradients(cmap_category, cmap_list): # Now let's plot with a CVD-friendly colormap (HomeyerRainbow) display.plot( - "reflectivity_horizontal", vmin=-32, vmax=64.0, cmap="HomeyerRainbow" -) + "reflectivity_horizontal", vmin=-32, vmax=64.0, cmap="HomeyerRainbow") diff --git a/examples/plotting/plot_ppi_mdv.py b/examples/plotting/plot_ppi_mdv.py index 7afb7ba374..fe5bf93307 100644 --- a/examples/plotting/plot_ppi_mdv.py +++ b/examples/plotting/plot_ppi_mdv.py @@ -24,7 +24,6 @@ fig = plt.figure(figsize=[5, 5]) ax = fig.add_subplot(111) display.plot( - "reflectivity", 0, vmin=-16.0, vmax=64, title="PPI", cmap="HomeyerRainbow" -) + "reflectivity", 0, vmin=-16.0, vmax=64, title="PPI", cmap="HomeyerRainbow") display.set_limits(ylim=[-150, 150], xlim=[-150, 150]) plt.show() diff --git a/pyart/graph/__init__.py b/pyart/graph/__init__.py index 33bc7cfbfe..34e65ca6cc 100644 --- a/pyart/graph/__init__.py +++ b/pyart/graph/__init__.py @@ -54,6 +54,9 @@ """ +# Import colormaps from cmweather +import cmweather + from .convstrat_scheme_plot import plot_convstrat_scheme # noqa from .gridmapdisplay import GridMapDisplay # noqa from .gridmapdisplay_basemap import GridMapDisplayBasemap # noqa