File tree 1 file changed +6
-2
lines changed
examples/images_contours_and_fields
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 28
28
29
29
bivariate = [air_temp , surf_pres ]
30
30
31
- # to distinguish bivariate data either BivariateNorm or BivariateColormap must
31
+ ###############################################################################
32
+ # To distinguish bivariate data either BivariateNorm or BivariateColormap must
32
33
# be passed in as argument
34
+
33
35
cax = ax .imshow (bivariate , norm = colors .BivariateNorm (),
34
36
cmap = colors .BivariateColormap ())
35
37
36
- # if input data is bivariate then colorbar automatically draws colorsquare
38
+ ###############################################################################
39
+ # If input data is bivariate then colorbar automatically draws colorsquare
37
40
# instead of colorbar
41
+
38
42
cbar = fig .colorbar (cax , xlabel = 'air_temp' , ylabel = 'surf_pres' )
39
43
40
44
plt .show ()
You can’t perform that action at this time.
0 commit comments