File tree Expand file tree Collapse file tree
examples/images_contours_and_fields Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929bivariate = [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+
3335cax = 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+
3842cbar = fig .colorbar (cax , xlabel = 'air_temp' , ylabel = 'surf_pres' )
3943
4044plt .show ()
You can’t perform that action at this time.
0 commit comments