Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e547e70 + 18e7a71 commit 082495cCopy full SHA for 082495c
1 file changed
examples/images_contours_and_fields/contourf_hatching.py
@@ -36,8 +36,8 @@
36
extend='lower')
37
38
# create a legend for the contour set
39
-artists, labels = cs.legend_elements()
40
-ax2.legend(artists, labels, handleheight=2)
+artists, labels = cs.legend_elements(str_format='{:2.1f}'.format)
+ax2.legend(artists, labels, handleheight=2, framealpha=1)
41
plt.show()
42
43
#############################################################################
0 commit comments