Skip to content

Commit

Permalink
Add imshow interpolation option
Browse files Browse the repository at this point in the history
mitchell seems best, or just none?
  • Loading branch information
endolith committed Aug 6, 2024
1 parent bf24cb0 commit 64e35a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/distributions_by_method_2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def simulate_batch(n_cands):
def plot_distribution(ax, histogram, title, max_lim):
extent = [-max_lim, max_lim, -max_lim, max_lim]
ax.imshow(histogram.T, cmap='afmhot_u', origin='lower',
aspect='auto', extent=extent)
aspect='auto', extent=extent, interpolation='none')
ax.set_xlim([-max_lim, max_lim])
ax.set_ylim([-max_lim, max_lim])
ax.set_aspect('equal') # Set the aspect ratio to be equal (square)
Expand Down

0 comments on commit 64e35a8

Please sign in to comment.