Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 33cd323

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

File tree

1 file changed

+6
-2
lines changed
Filter options

1 file changed

+6
-2
lines changed

‎examples/images_contours_and_fields/bivariate_demo.py

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/bivariate_demo.py
+6-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.