Skip to content

Commit

Permalink
{"interpolation defaulting to none
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Nov 30, 2023
1 parent 826f277 commit ccd8db7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/openmc_cylindrical_mesh_plotter/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ def plot_mesh_tally_rz_slice(
axes.set_xlabel(xlabel)
axes.set_ylabel(ylabel)

im = axes.imshow(data, extent=(x_min, x_max, y_min, y_max), **kwargs)
# zero values with logscale produce noise / fuzzy on the time but setting interpolation to none solves this
default_imshow_kwargs = {"interpolation": "none"}
default_imshow_kwargs.update(kwargs)

im = axes.imshow(data, extent=(x_min, x_max, y_min, y_max), **default_imshow_kwargs)

if colorbar:
fig.colorbar(im, **colorbar_kwargs)
Expand Down

0 comments on commit ccd8db7

Please sign in to comment.