File tree 2 files changed +11
-7
lines changed
Filter options
examples/images_contours_and_fields
2 files changed +11
-7
lines changed
Original file line number Diff line number Diff line change 1
1
"""
2
- ===========
2
+ ==============
3
3
Bivariate Demo
4
- ===========
4
+ ==============
5
5
6
6
Plotting bivariate data.
7
7
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 ()
Original file line number Diff line number Diff line change @@ -5302,11 +5302,11 @@ def pcolor(self, *args, **kwargs):
5302
5302
vectors, they will be expanded as needed into the appropriate 2-D
5303
5303
arrays, making a rectangular grid.
5304
5304
5305
- cmap : `~matplotlib.colors.Colormap` or
5305
+ cmap : `~matplotlib.colors.Colormap` or \
5306
5306
`matplotlib.colors.BivariateColormap`, optional, default: None
5307
5307
If `None`, default to rc settings.
5308
5308
5309
- norm : `matplotlib.colors.Normalize` or
5309
+ norm : `matplotlib.colors.Normalize` or \
5310
5310
`matplotlib.colors.BivariateNorm`, optional, default: None
5311
5311
An instance is used to scale luminance data to (0, 1).
5312
5312
If `None`, defaults to :func:`normalize`.
@@ -5575,7 +5575,7 @@ def pcolormesh(self, *args, **kwargs):
5575
5575
5576
5576
*cmap*: [ *None* | Colormap ]
5577
5577
A :class:`matplotlib.colors.Colormap` or
5578
- :class:`matplotlib.colors.BivariateColormap`instance. If *None*,
5578
+ :class:`matplotlib.colors.BivariateColormap` instance. If *None*,
5579
5579
use rc settings.
5580
5580
5581
5581
*norm*: [ *None* | Normalize ]
You can’t perform that action at this time.
0 commit comments