Skip to content

Commit

Permalink
Dev icenet-ai#279: Fix incorrect cmap passing
Browse files Browse the repository at this point in the history
  • Loading branch information
bnubald committed Jul 7, 2024
1 parent fecbbe5 commit c4b358e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions icenet/plotting/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1709,11 +1709,11 @@ def plot_forecast(show_plot=False):
proj=target_crs if args.north_facing else None,
set_extents=not args.north_facing
)
bound_args.update(cmap=cmap)

im = show_img(ax,
pred_da,
**bound_args,
cmap=cmap,
vmax=vmax,
do_coastlines=not args.no_coastlines)

Expand All @@ -1728,7 +1728,6 @@ def plot_forecast(show_plot=False):
set_extents=False
)

bound_args.update(cmap=cmap)
# im = ax.pcolormesh(pred_da.lon, pred_da.lat, pred_da, transform=target_crs, vmin=0, vmax=vmax, cmap=cmap)
im = pred_da.plot.pcolormesh("lon", "lat", ax=ax, transform=target_crs, vmin=0, vmax=vmax, add_colorbar=False, cmap=cmap)
if not args.no_coastlines:
Expand Down

0 comments on commit c4b358e

Please sign in to comment.