Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c089615

Browse files
committed
Augmented colorbar docstring
svn path=/trunk/matplotlib/; revision=2952
1 parent 67b4190 commit c089615

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/matplotlib/colorbar.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
new image axes
3636
shrink = 1.0; fraction by which to shrink the colorbar
3737
aspect = 20; ratio of long to short dimensions
38+
3839
'''
3940

4041
colormap_kw_doc = '''
@@ -92,6 +93,17 @@
9293
9394
If mappable is a ContourSet, its extend kwarg is included automatically.
9495
96+
Note that the shrink kwarg provides a simple way to keep
97+
a vertical colorbar, for example, from being taller than
98+
the axes of the mappable to which the colorbar is attached;
99+
but it is a manual method requiring some trial and error.
100+
If the colorbar is too tall (or a horizontal colorbar is
101+
too wide) use a smaller value of shrink.
102+
103+
For more precise control, you can manually specify the
104+
positions of the axes objects in which the mappable and
105+
the colorbar are drawn. In this case, do not use any of the
106+
axes properties kwargs.
95107
''' % (make_axes_kw_doc, colormap_kw_doc)
96108

97109

0 commit comments

Comments
 (0)