|
70 | 70 | colorbar_doc = ''' |
71 | 71 | Add a colorbar to a plot. |
72 | 72 |
|
73 | | -Function signatures: |
| 73 | +Function signatures for the pyplot interface; all but the first are |
| 74 | +also method signatures for the Figure.colorbar method: |
74 | 75 |
|
75 | 76 | colorbar(**kwargs) |
76 | | -
|
77 | 77 | colorbar(mappable, **kwargs) |
| 78 | + colorbar(mappable, cax=cax, **kwargs) |
| 79 | + colorbar(mappable, ax=ax, **kwargs) |
| 80 | +
|
| 81 | + arguments: |
| 82 | + mappable: the image, ContourSet, etc. to which the colorbar applies; |
| 83 | + this argument is mandatory for the Figure.colorbar |
| 84 | + method but optional for the pyplot.colorbar function, |
| 85 | + which sets the default to the current image. |
78 | 86 |
|
79 | | - colorbar(mappable, cax, **kwargs) |
| 87 | + keyword arguments: |
| 88 | + cax: None | axes object into which the colorbar will be drawn |
| 89 | + ax: None | parent axes object from which space for a new |
| 90 | + colorbar axes will be stolen |
80 | 91 |
|
81 | | -The optional arguments mappable and cax may be included in the kwargs; |
82 | | -they are image, ContourSet, etc. to which the colorbar applies, and |
83 | | -the axes object in which the colorbar will be drawn. Defaults are |
84 | | -the current image and a new axes object created next to that image |
85 | | -after resizing the image. |
86 | 92 |
|
87 | | -kwargs are in two groups: |
| 93 | +**kwargs are in two groups: |
88 | 94 | axes properties: |
89 | 95 | %s |
90 | 96 | colorbar properties: |
|
0 commit comments