Skip to content

Commit ca2c767

Browse files
committed
Fix bug in plot_2d
modified: plot2.py
1 parent b671af5 commit ca2c767

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

swyft/plot/plot2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def plot_2d(
7373
colors=color,
7474
)
7575
ax.imshow(
76-
counts.T, extent=[xbins.min(), xbins.max(), ybins.min(), ybins.max()], cmap=cmap
76+
counts.T, extent=[xbins.min(), xbins.max(), ybins.min(), ybins.max()], cmap=cmap,
77+
origin = 'lower', aspect = 'auto'
7778
)
7879
ax.set_xlim([xbins.min(), xbins.max()])
7980
ax.set_ylim([ybins.min(), ybins.max()])

0 commit comments

Comments
 (0)