Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33cd323

Browse files
committed
Follow sphinx gallery format for comments in example
1 parent 7803974 commit 33cd323

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/images_contours_and_fields/bivariate_demo.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,17 @@
2828

2929
bivariate = [air_temp, surf_pres]
3030

31-
# to distinguish bivariate data either BivariateNorm or BivariateColormap must
31+
###############################################################################
32+
# To distinguish bivariate data either BivariateNorm or BivariateColormap must
3233
# be passed in as argument
34+
3335
cax = ax.imshow(bivariate, norm=colors.BivariateNorm(),
3436
cmap=colors.BivariateColormap())
3537

36-
# if input data is bivariate then colorbar automatically draws colorsquare
38+
###############################################################################
39+
# If input data is bivariate then colorbar automatically draws colorsquare
3740
# instead of colorbar
41+
3842
cbar = fig.colorbar(cax, xlabel='air_temp', ylabel='surf_pres')
3943

4044
plt.show()

0 commit comments

Comments
 (0)