Skip to content

Commit 4e48e52

Browse files
committed
CLN: correct format string
1 parent 04b2f7b commit 4e48e52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tools/plotting.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ def _get_standard_colors(num_colors=None, colormap=None, color_type='default',
9898
if color is None and colormap is not None:
9999
if isinstance(colormap, basestring):
100100
import matplotlib.cm as cm
101+
cmap = colormap
101102
colormap = cm.get_cmap(colormap)
102103
if colormap is None:
103-
raise ValueError("Colormap {0} is not recognized")
104+
raise ValueError("Colormap {0} is not recognized".format(cmap))
104105
colors = map(colormap, np.linspace(0, 1, num=num_colors))
105106
elif color is not None:
106107
if colormap is not None:

0 commit comments

Comments
 (0)