Skip to content

Commit

Permalink
Update viz.py
Browse files Browse the repository at this point in the history
Changed line 34 of of viz.py from 'lower left' to 'lower' to fix 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 ede7a77 commit 4b5e30b
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 @@ -31,7 +31,7 @@ def abs(val, outline=None, ax=None, cbar=False, cmap='magma', outline_alpha=0.5,
fig, ax = plt.subplots(1, 1, constrained_layout=True)

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

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

0 comments on commit 4b5e30b

Please sign in to comment.