Skip to content

Commit 8dbe8cb

Browse files
committed
removed redundant color character definitions from axis.py
svn path=/trunk/matplotlib/; revision=3423
1 parent d934dc1 commit 8dbe8cb

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

lib/matplotlib/axes.py

+1-13
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,6 @@ def _process_plot_format(fmt):
108108
109109
"""
110110

111-
colors = {
112-
'b' : 1,
113-
'g' : 1,
114-
'r' : 1,
115-
'c' : 1,
116-
'm' : 1,
117-
'y' : 1,
118-
'k' : 1,
119-
'w' : 1,
120-
}
121-
122-
123111
linestyle = None
124112
marker = None
125113
color = None
@@ -154,7 +142,7 @@ def _process_plot_format(fmt):
154142
if marker is not None:
155143
raise ValueError, 'Illegal format string "%s"; two marker symbols' % fmt
156144
marker = c
157-
elif colors.has_key(c):
145+
elif colorConverter.colors.has_key(c):
158146
if color is not None:
159147
raise ValueError, 'Illegal format string "%s"; two color symbols' % fmt
160148
color = c

0 commit comments

Comments
 (0)