Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8dbe8cb

Browse files
committed
removed redundant color character definitions from axis.py
svn path=/trunk/matplotlib/; revision=3423
1 parentd934dc1 commit8dbe8cb

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

‎lib/matplotlib/axes.py

Lines changed: 1 addition & 13 deletions
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
ifmarkerisnotNone:
155143
raiseValueError,'Illegal format string "%s"; two marker symbols'%fmt
156144
marker=c
157-
elifcolors.has_key(c):
145+
elifcolorConverter.colors.has_key(c):
158146
ifcolorisnotNone:
159147
raiseValueError,'Illegal format string "%s"; two color symbols'%fmt
160148
color=c

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp