From aac2ec70a3647a351bfc6c1043d8dd837463c305 Mon Sep 17 00:00:00 2001 From: Ou Wang Date: Tue, 24 Jan 2023 16:59:42 -0800 Subject: [PATCH] Add a new argument circle_boundary for plot_proj_to_latlon_grid --- ecco_v4_py/tile_plot_proj.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ecco_v4_py/tile_plot_proj.py b/ecco_v4_py/tile_plot_proj.py index 6b40bc4..5c86ff6 100644 --- a/ecco_v4_py/tile_plot_proj.py +++ b/ecco_v4_py/tile_plot_proj.py @@ -27,6 +27,7 @@ def plot_proj_to_latlon_grid(lons, lats, data, mapping_method='nearest_neighbor', radius_of_influence = 112000, plot_type = 'pcolormesh', + circle_boundary = False, cmap = None, cmin = None, cmax = None, @@ -103,6 +104,9 @@ def plot_proj_to_latlon_grid(lons, lats, data, 'pcolormesh' - pcolormesh 'contourf' - filled contour 'points' - plot points at lat/lon locations + + circle_boundary : logical, optional, default False + use a circle boundary or not cmap : matplotlib.colors.Colormap, optional, default None a colormap for the figure. @@ -232,6 +236,7 @@ def plot_proj_to_latlon_grid(lons, lats, data, lat_lim, cmin, cmax, ax, plot_type = plot_type, + circle_boundary = circle_boundary, cmap = cmap, show_coastline = show_coastline, show_colorbar = show_colorbar, @@ -317,6 +322,7 @@ def plot_proj_to_latlon_grid(lons, lats, data, data_epsg_code, cmin, cmax, ax, plot_type = plot_type, + circle_boundary = circle_boundary, cmap = cmap, show_coastline = show_coastline, show_colorbar = show_colorbar,