Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
#17618 fix unicode doctest failures in colors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Monteil committed Jan 13, 2015
1 parent bf4b81b commit 12baa7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/plot/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
For a list of color maps in Sage, evaluate::
sage: sorted(colormaps)
['Accent', 'Accent_r', 'Blues', 'Blues_r', 'BrBG', 'BrBG_r', ...]
[u'Accent', u'Accent_r', u'Blues', u'Blues_r', u'BrBG', u'BrBG_r', ...]
These are imported from matplotlib's cm_ module.
Expand Down Expand Up @@ -1335,7 +1335,7 @@ def get_cmap(cmap):
and color names. For a list of map names, evaluate::
sage: sorted(colormaps)
['Accent', 'Accent_r', 'Blues', 'Blues_r', ...]
[u'Accent', u'Accent_r', u'Blues', u'Blues_r', ...]
See :func:`rgbcolor` for valid list/tuple element formats.
Expand Down Expand Up @@ -1396,7 +1396,7 @@ class Colormaps(collections.MutableMapping):
For a list of map names, evaluate::
sage: sorted(colormaps)
['Accent', 'Accent_r', 'Blues', 'Blues_r', ...]
[u'Accent', u'Accent_r', u'Blues', u'Blues_r', ...]
"""
def __init__(self):
"""
Expand Down Expand Up @@ -1643,7 +1643,7 @@ def __delitem__(self, name):
sage: maps = Colormaps()
sage: count = len(maps)
sage: maps.popitem()
('Spectral', <matplotlib.colors.LinearSegmentedColormap object at ...>)
(u'Spectral', <matplotlib.colors.LinearSegmentedColormap object at ...>)
sage: count - 1 == len(maps)
True
"""
Expand Down

0 comments on commit 12baa7f

Please sign in to comment.