Skip to content

Commit

Permalink
Update viz.py - Line 14
Browse files Browse the repository at this point in the history
Changed line 14 of of viz.py from 'lower left' to 'lower' to prevent error (ValueError: 'lower left' is not a valid value for origin; supported values are 'upper', 'lower')
  • Loading branch information
kopongmensah authored Jan 25, 2021
1 parent 4b5e30b commit a1ee155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ceviche/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def real(val, outline=None, ax=None, cbar=False, cmap='RdBu', outline_alpha=0.5)
fig, ax = plt.subplots(1, 1, constrained_layout=True)

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

if outline is not None:
ax.contour(outline.T, 0, colors='k', alpha=outline_alpha)
Expand Down

0 comments on commit a1ee155

Please sign in to comment.