Skip to content

Commit

Permalink
#6 remove aspect para
Browse files Browse the repository at this point in the history
  • Loading branch information
webgisdeveloper committed Jan 1, 2022
1 parent 6b85231 commit a955c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sldtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def plotcolorbar(legendname, colortheme, vminmax, vminmax_disp):
vmin_disp, vmax_disp = vminmax_disp
tick_text = ["{:.2f}".format(vmin_disp),"{:.2f}".format(0.5*vmin_disp),0, "{:.2f}".format(0.5*vmax_disp),"{:.2f}".format(vmax_disp)]
cb.ax.set_xticklabels(tick_text, fontsize=9)
plt.savefig(os.path.join(settings.COLOR_DIR,legendname + ".png"), format="PNG", bbox_inches='tight',pad_inches = 0.05, aspect="auto", transparent=False)
plt.savefig(os.path.join(settings.COLOR_DIR,legendname + ".png"), format="PNG", bbox_inches='tight',pad_inches = 0.05, transparent=False)

# close fig to release memory
plt.close(fig)
Expand Down

0 comments on commit a955c16

Please sign in to comment.