Skip to content

Commit

Permalink
colorbar_orient option to plot_ppi_map functions (#1401)
Browse files Browse the repository at this point in the history
* Add colorbar_orient option

* Added colorbar_orient option to plot_ppi_map
  • Loading branch information
joshua-hampton authored Mar 16, 2023
1 parent 4f4ce03 commit 446a838
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyart/graph/radarmapdisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def plot_ppi_map(
title_flag=True,
colorbar_flag=True,
colorbar_label=None,
colorbar_orient="vertical",
ax=None,
fig=None,
lat_lines=None,
Expand Down Expand Up @@ -197,6 +198,8 @@ def plot_ppi_map(
colorbar_label : str
Colorbar label, None will use a default label generated from the
field information.
colorbar_orient : 'vertical' or 'horizontal'
Colorbar orientation.
ax : Cartopy GeoAxes instance
If None, create GeoAxes instance using other keyword info.
If provided, ax must have a Cartopy crs projection and projection
Expand Down Expand Up @@ -417,6 +420,7 @@ def plot_ppi_map(
self.plot_colorbar(
mappable=pm,
label=colorbar_label,
orient=colorbar_orient,
field=field,
fig=fig,
ax=ax,
Expand Down
4 changes: 4 additions & 0 deletions pyart/graph/radarmapdisplay_basemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def plot_ppi_map(
title_flag=True,
colorbar_flag=True,
colorbar_label=None,
colorbar_orient="vertical",
ax=None,
fig=None,
lat_lines=None,
Expand Down Expand Up @@ -191,6 +192,8 @@ def plot_ppi_map(
colorbar_label : str
Colorbar label, None will use a default label generated from the
field information.
colorbar_orient : 'vertical' or 'horizontal'
Colorbar orientation.
ax : Axis
Axis to plot on. None will use the current axis.
fig : Figure
Expand Down Expand Up @@ -370,6 +373,7 @@ def plot_ppi_map(
self.plot_colorbar(
mappable=pm,
label=colorbar_label,
orient=colorbar_orient,
field=field,
fig=fig,
ax=ax,
Expand Down

0 comments on commit 446a838

Please sign in to comment.