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

Skip to content

Commit d87156f

Browse files
committed
wrap lines to <= 80 characters
1 parent 73fb325 commit d87156f

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

lib/matplotlib/pyplot.py

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,14 +1645,16 @@ def colors():
16451645

16461646
def colormaps():
16471647
"""
1648-
matplotlib provides a number of colormaps, a complete list of which can be found in `cm._cmapnames`.
1648+
matplotlib provides a number of colormaps, a complete list of which can
1649+
be found in `cm._cmapnames`.
16491650
16501651
You can set the colormap for an image, pcolor, scatter, etc,
16511652
using a keyword argument::
16521653
16531654
imshow(X, cmap=cm.hot)
16541655
1655-
Additionally, for the "base" colormaps below, you can set the colormap post-hoc using the corresponding pylab interface function::
1656+
Additionally, for the "base" colormaps below, you can set the colormap
1657+
post-hoc using the corresponding pylab interface function::
16561658
16571659
imshow(X)
16581660
hot()
@@ -1667,7 +1669,8 @@ def colormaps():
16671669
There are 3 common color schemes used in visualization:
16681670
16691671
1. Sequential schemes, for unipolar data that progresses from low to high
1670-
2. Diverging schemes, for bipolar data that emphasizes positive or negative deviations from a central value
1672+
2. Diverging schemes, for bipolar data that emphasizes positive or negative
1673+
deviations from a central value
16711674
3. Qualitative schemes, which don't have a relationship to magnitude
16721675
16731676
The base colormaps are:
@@ -1702,7 +1705,8 @@ def colormaps():
17021705
========= =======================================================
17031706
17041707
The next 7 palettes are from the `Yorick scientific visualisation
1705-
package <http://yorick.sourceforge.net/index.php>`_, an evolution of the GIST package, both by David H. Munro:
1708+
package <http://yorick.sourceforge.net/index.php>`_, an evolution of
1709+
the GIST package, both by David H. Munro:
17061710
17071711
============ =======================================================
17081712
Colormap Description
@@ -1712,13 +1716,17 @@ def colormaps():
17121716
gist_gray (identical to *gray*)
17131717
gist_heat sequential red-orange-yellow-white, to emulate blackbody
17141718
radiation from an iron bar as it grows hotter
1715-
gist_ncar pseudo-spectral colormap from National Center for Atmospheric Research [#]_
1716-
gist_rainbow runs through the colors in spectral order at nearly constant intensity
1717-
gist_stern "Stern special" color table from Interactive Data Language software
1719+
gist_ncar pseudo-spectral colormap from National Center for
1720+
Atmospheric Research [#]_
1721+
gist_rainbow runs through the colors in spectral order at nearly
1722+
constant intensity
1723+
gist_stern "Stern special" color table from Interactive Data
1724+
Language software
17181725
gist_yarg (identical to *gray_r*)
17191726
============ =======================================================
17201727
1721-
The following 34 colormaps are based on the `ColorBrewer <http://colorbrewer.org>`_ color specifications and designs developed by Cynthia Brewer:
1728+
The following 34 colormaps are based on the `ColorBrewer <http://colorbrewer.org>`_
1729+
color specifications and designs developed by Cynthia Brewer:
17221730
17231731
Diverging:
17241732
@@ -1802,13 +1810,20 @@ def colormaps():
18021810
18031811
.. rubric:: Footnotes
18041812
1805-
.. [#] Rainbow colormaps, `jet` in particular, are considered a poor choice for scientific visualization by many researchers: `Rainbow Color Map (Still) Considered Harmful <http://www.jwave.vt.edu/%7Erkriz/Projects/create_color_table/color_07.pdf>`_
1813+
.. [#] Rainbow colormaps, ``jet`` in particular, are considered a poor
1814+
choice for scientific visualization by many researchers: `Rainbow Color
1815+
Map (Still) Considered Harmful
1816+
<http://www.jwave.vt.edu/%7Erkriz/Projects/create_color_table/color_07.pdf>`_
18061817
1807-
.. [#] Resembles "BkBlAqGrYeOrReViWh200" from `Color Table Gallery <http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml>`_
1818+
.. [#] Resembles "BkBlAqGrYeOrReViWh200" from `Color Table Gallery
1819+
<http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml>`_
18081820
1809-
.. [#] See `Diverging Color Maps for Scientific Visualization <http://www.cs.unm.edu/~kmorel/documents/ColorMaps/>`_ by Kenneth Moreland.
1821+
.. [#] See `Diverging Color Maps for Scientific Visualization
1822+
<http://www.cs.unm.edu/~kmorel/documents/ColorMaps/>`_ by Kenneth Moreland.
18101823
1811-
.. [#] See `A Color Map for Effective Black-and-White Rendering of Color-Scale Images <http://www.mathworks.com/matlabcentral/fileexchange/2662-cmrmap-m>`_ by Carey Rappaport
1824+
.. [#] See `A Color Map for Effective Black-and-White Rendering of Color-Scale
1825+
Images <http://www.mathworks.com/matlabcentral/fileexchange/2662-cmrmap-m>`_
1826+
by Carey Rappaport
18121827
18131828
"""
18141829
pass

0 commit comments

Comments
 (0)