Skip to content

Commit

Permalink
FIX: Missing import.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Sep 7, 2023
1 parent 2fbe384 commit 4634391
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/plotting/plot_choose_a_colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
3 changes: 1 addition & 2 deletions examples/plotting/plot_ppi_mdv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
3 changes: 3 additions & 0 deletions pyart/graph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4634391

Please sign in to comment.