Skip to content

Commit

Permalink
#25 colorbar label
Browse files Browse the repository at this point in the history
  • Loading branch information
webgisdeveloper committed Feb 9, 2022
1 parent 1d9276b commit 75a2a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webAPI/getInterpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def create_contour_overlay(Lon, Lat, Z):
# color bar need more work to get it looks good
fig,ax = plt.subplots()
ticks = np.linspace(Z.min(),Z.max(),5)
cbar = plt.colorbar(mbp,ax=ax,orientation="horizontal",ticks=ticks)
cbar = plt.colorbar(mbp,ax=ax,orientation="horizontal",ticks=ticks,label=imagename)
#cbar.ax.locator_params(nbins=3)
ax.remove()
plt.savefig(f"contour_of_{imagename}_colorbar0.png",bbox_inches='tight',transparent=False)
Expand Down

0 comments on commit 75a2a29

Please sign in to comment.