Skip to content

Commit

Permalink
Merge pull request #1050 from xylar/fix-bsf-plots
Browse files Browse the repository at this point in the history
Fix barotropic streamfuncion
  • Loading branch information
xylar authored Jan 17, 2025
2 parents 28950cb + 670eb03 commit 5831d88
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mpas_analysis/shared/plot/climatology_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,9 @@ def plot_panel(ax, title, array, colormap, norm, levels, ticks, contours,
colors=lineColor, linewidths=lineWidth)
# add arrows to streamlines
if arrows is not None:
for collection in cs.collections:
for path in collection.get_paths():
for poly in path.to_polygons():
add_arrow_to_line_2d(ax, poly)
for path in cs.get_paths():
for poly in path.to_polygons():
add_arrow_to_line_2d(ax, poly)
# create an axes on the right side of ax. The width of cax will be 5%
# of ax and the padding between cax and ax will be fixed at 0.05 inch.
divider = make_axes_locatable(ax)
Expand Down

0 comments on commit 5831d88

Please sign in to comment.