Skip to content

Commit 5831d88

Browse files
authored
Merge pull request #1050 from xylar/fix-bsf-plots
Fix barotropic streamfuncion
2 parents 28950cb + 670eb03 commit 5831d88

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mpas_analysis/shared/plot/climatology_map.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,9 @@ def plot_panel(ax, title, array, colormap, norm, levels, ticks, contours,
612612
colors=lineColor, linewidths=lineWidth)
613613
# add arrows to streamlines
614614
if arrows is not None:
615-
for collection in cs.collections:
616-
for path in collection.get_paths():
617-
for poly in path.to_polygons():
618-
add_arrow_to_line_2d(ax, poly)
615+
for path in cs.get_paths():
616+
for poly in path.to_polygons():
617+
add_arrow_to_line_2d(ax, poly)
619618
# create an axes on the right side of ax. The width of cax will be 5%
620619
# of ax and the padding between cax and ax will be fixed at 0.05 inch.
621620
divider = make_axes_locatable(ax)

0 commit comments

Comments
 (0)