Skip to content

Commit 7cd109b

Browse files
committed
Remove Lena examples
1 parent 5ea8286 commit 7cd109b

File tree

1 file changed

+6
-24
lines changed

1 file changed

+6
-24
lines changed

doc/users/plotting/colormaps/colorconv.py

+6-24
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
"""Functions for converting between color spaces.
55
6-
Colorconv is copied from scikit-image to avoid an additional dependency on scikit-image
7-
in the matplotlib documentation. You should almost sertanly use the original module
8-
for any other use. This only contains the bare minumum functions needed for rgb2lab
9-
Utility functions copied from dtype.py
6+
Colorconv is copied from scikit-image to avoid an additional dependency on
7+
scikit-image in the matplotlib documentation. You should almost sertanly use
8+
the original module for any other use. This only contains the bare minumum
9+
functions needed for rgb2lab Utility functions copied from dtype.py
1010
1111
The "central" color space in this module is RGB, more specifically the linear
1212
sRGB color space using D65 as a white-point [1]_. This represents a
@@ -220,11 +220,7 @@ def rgb2xyz(rgb):
220220
----------
221221
.. [1] http://en.wikipedia.org/wiki/CIE_1931_color_space
222222
223-
Examples
224-
--------
225-
>>> from skimage import data
226-
>>> lena = data.lena()
227-
>>> lena_xyz = rgb2xyz(lena)
223+
228224
"""
229225
# Follow the algorithm from http://www.easyrgb.com/index.php
230226
# except we don't multiply/divide by 100 in the conversion
@@ -273,14 +269,6 @@ def xyz2lab(xyz, illuminant="D65", observer="2"):
273269
.. [1] http://www.easyrgb.com/index.php?X=MATH&H=07#text7
274270
.. [2] http://en.wikipedia.org/wiki/Lab_color_space
275271
276-
Examples
277-
--------
278-
>>> from skimage import data
279-
>>> from skimage.color import rgb2xyz, xyz2lab
280-
>>> lena = data.lena()
281-
>>> lena_xyz = rgb2xyz(lena)
282-
>>> lena_lab = xyz2lab(lena_xyz)
283-
284272
"""
285273
arr = _prepare_colorarray(xyz)
286274

@@ -331,13 +319,7 @@ def xyz2rgb(xyz):
331319
----------
332320
.. [1] http://en.wikipedia.org/wiki/CIE_1931_color_space
333321
334-
Examples
335-
--------
336-
>>> from skimage import data
337-
>>> from skimage.color import rgb2xyz, xyz2rgb
338-
>>> lena = data.lena()
339-
>>> lena_xyz = rgb2xyz(lena)
340-
>>> lena_rgb = xyz2rgb(lena_xyz)
322+
341323
"""
342324
# Follow the algorithm from http://www.easyrgb.com/index.php
343325
# except we don't multiply/divide by 100 in the conversion

0 commit comments

Comments
 (0)