Skip to content

Commit 5da9df1

Browse files
authored
Merge pull request #23 from kwadwo00/master
Minor fix for viz.py
2 parents ede7a77 + a1ee155 commit 5da9df1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ceviche/viz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def real(val, outline=None, ax=None, cbar=False, cmap='RdBu', outline_alpha=0.5)
1111
fig, ax = plt.subplots(1, 1, constrained_layout=True)
1212

1313
vmax = np.abs(val).max()
14-
h = ax.imshow(np.real(val.T), cmap=cmap, origin='lower left', vmin=-vmax, vmax=vmax)
14+
h = ax.imshow(np.real(val.T), cmap=cmap, origin='lower', vmin=-vmax, vmax=vmax)
1515

1616
if outline is not None:
1717
ax.contour(outline.T, 0, colors='k', alpha=outline_alpha)
@@ -31,7 +31,7 @@ def abs(val, outline=None, ax=None, cbar=False, cmap='magma', outline_alpha=0.5,
3131
fig, ax = plt.subplots(1, 1, constrained_layout=True)
3232

3333
vmax = np.abs(val).max()
34-
h = ax.imshow(np.abs(val.T), cmap=cmap, origin='lower left', vmin=0, vmax=vmax)
34+
h = ax.imshow(np.abs(val.T), cmap=cmap, origin='lower', vmin=0, vmax=vmax)
3535

3636
if outline_val is None and outline is not None: outline_val = 0.5*(outline.min()+outline.max())
3737
if outline is not None:

0 commit comments

Comments
 (0)