Skip to content

Commit

Permalink
#24 generate 2 colorbars
Browse files Browse the repository at this point in the history
  • Loading branch information
webgisdeveloper committed Feb 4, 2022
1 parent 5390fff commit 1d9276b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webAPI/getInterpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def create_contour_overlay(Lon, Lat, Z):
cbar = plt.colorbar(mbp,ax=ax,orientation="horizontal",ticks=ticks)
#cbar.ax.locator_params(nbins=3)
ax.remove()
plt.savefig(f"contour_of_{imagename}_colorbar.png",bbox_inches='tight',transparent=False)
#plt.savefig(f"contour_of_{imagename}_colorbar.png",bbox_inches='tight',transparent=True)
plt.savefig(f"contour_of_{imagename}_colorbar0.png",bbox_inches='tight',transparent=False)
plt.savefig(f"contour_of_{imagename}_colorbar.png",bbox_inches='tight',transparent=True)
plt.close(fig)

# create KML
Expand All @@ -145,7 +145,7 @@ def create_contour_overlay(Lon, Lat, Z):
<name>Legend</name>
<visibility>1</visibility>
<Icon>
<href>contour_of_{imagename}_colorbar.png</href>
<href>contour_of_{imagename}_colorbar0.png</href>
</Icon>
<overlayXY x="0.5" y="1" xunits="fraction" yunits="fraction"/>
<screenXY x="0.5" y="1" xunits="fraction" yunits="fraction"/>
Expand Down

0 comments on commit 1d9276b

Please sign in to comment.