Skip to content

Commit dcf3ef4

Browse files
committed
simple_imshow_map_plot now uses get_proper_color_map for colormap resolution.
1 parent 7ed6813 commit dcf3ef4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/astrohack/visualization/plot_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def simple_imshow_map_plot(
380380
y_axis,
381381
gridded_2d_arr,
382382
title,
383-
cmap,
383+
colormap,
384384
zlim,
385385
x_label="X axis [m]",
386386
y_label="Y axis [m]",
@@ -390,6 +390,7 @@ def simple_imshow_map_plot(
390390
extent_margin=0,
391391
add_colorbar=True,
392392
):
393+
cmap = get_proper_color_map(colormap)
393394
if zlim is None:
394395
minmax = [np.nanmin(gridded_2d_arr), np.nanmax(gridded_2d_arr)]
395396
else:

0 commit comments

Comments
 (0)