From 670eb03724d9ccf5ffc9e20a33c67834afcbf65d Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Fri, 17 Jan 2025 14:08:17 -0600 Subject: [PATCH] Fix barotropic streamfuncion --- mpas_analysis/shared/plot/climatology_map.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mpas_analysis/shared/plot/climatology_map.py b/mpas_analysis/shared/plot/climatology_map.py index d2685d215..d458f7681 100644 --- a/mpas_analysis/shared/plot/climatology_map.py +++ b/mpas_analysis/shared/plot/climatology_map.py @@ -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)