Skip to content

Commit

Permalink
debug create_plot
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Sommani committed Jan 21, 2025
1 parent e03682b commit 7ef5ede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skyreader/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def create_plot(
] = np.nanmin(equatorial_map[equatorial_map > 0.])
print(np.min(equatorial_map), np.nanmin(equatorial_map))
map_to_plot[plotting_map == 0.] = np.nan
# equatorial_map = np.ma.masked_invalid(equatorial_map)
equatorial_map = np.ma.masked_invalid(equatorial_map)
map_to_plot = np.ma.masked_invalid(map_to_plot)

LOGGER.info(f"Preparing plot: {plot_filename}...")
Expand Down Expand Up @@ -185,6 +185,7 @@ def create_plot(
ra, dec, map_to_plot, levels=[level], colors=[color]
)
cs_collections.append(contour_set.get_paths()[0])
print(cs_collections)
e, _ = contour_set.legend_elements()
leg_element.append(e[0])

Expand Down

0 comments on commit 7ef5ede

Please sign in to comment.