Skip to content

Commit

Permalink
Made legends more balanced
Browse files Browse the repository at this point in the history
  • Loading branch information
water-e committed Sep 18, 2019
1 parent bb5f91b commit 9869b11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyschism/contour_smooth.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,23 +198,23 @@ def view_smooth(file0,file1,levels,vmin,vmax,**kwargs):
dem0 = np.load(file0)
dem1 = np.load(file1)

fig, (ax0,ax1) = plt.subplots(1,2,sharex=True,sharey=True)
fig, (ax0,ax1) = plt.subplots(1,2,sharex=True,sharey=True,figsize=(16,6))

ax0.imshow(dem0,vmin=vmin,vmax=vmax)
im0 =ax0.imshow(dem0,vmin=vmin,vmax=vmax)
cs0 = ax0.contour(dem0, levels,
origin='lower',
colors = 'k',
linewidths=1,antialiased=True)

#fig.colorbar(im0)
im1 = ax1.imshow(dem1,vmin=vmin,vmax=vmax)

cs1 = ax1.contour(dem1, levels,
origin='lower',
colors = 'k',
linewidths=1,antialiased=True)
plt.clabel(cs1, inline=1, fontsize=10)
fig.colorbar(im1)
#fig.colorbar(im1)
plt.show()


Expand Down

0 comments on commit 9869b11

Please sign in to comment.