@@ -46,7 +46,7 @@ def draw_circle_patch(self):
46
46
47
47
patch_dict = {'polygon' : draw_poly_patch , 'circle' : draw_circle_patch }
48
48
if frame not in patch_dict :
49
- raise ValueError , 'unknown value for `frame`: %s' % frame
49
+ raise ValueError ( 'unknown value for `frame`: %s' % frame )
50
50
51
51
class RadarAxes (PolarAxes ):
52
52
@@ -133,7 +133,8 @@ def example_data():
133
133
# 4)Inclusion of both gas-phase speciesis present...
134
134
data = {
135
135
'column names' :
136
- ['Sulfate' , 'Nitrate' , 'EC' , 'OC1' , 'OC2' , 'OC3' , 'OP' , 'CO' , 'O3' ],
136
+ ['Sulfate' , 'Nitrate' , 'EC' , 'OC1' , 'OC2' , 'OC3' , 'OP' , 'CO' ,
137
+ 'O3' ],
137
138
'Basecase' :
138
139
[[0.88 , 0.01 , 0.03 , 0.03 , 0.00 , 0.06 , 0.01 , 0.00 , 0.00 ],
139
140
[0.07 , 0.95 , 0.04 , 0.05 , 0.00 , 0.02 , 0.01 , 0.00 , 0.00 ],
@@ -157,8 +158,7 @@ def example_data():
157
158
[0.09 , 0.95 , 0.02 , 0.03 , 0.00 , 0.01 , 0.13 , 0.06 , 0.00 ],
158
159
[0.01 , 0.02 , 0.71 , 0.24 , 0.13 , 0.16 , 0.00 , 0.50 , 0.00 ],
159
160
[0.01 , 0.03 , 0.00 , 0.28 , 0.24 , 0.23 , 0.00 , 0.44 , 0.88 ],
160
- [0.02 , 0.00 , 0.18 , 0.45 , 0.64 , 0.55 , 0.86 , 0.00 , 0.16 ]]
161
- }
161
+ [0.02 , 0.00 , 0.18 , 0.45 , 0.64 , 0.55 , 0.86 , 0.00 , 0.16 ]]}
162
162
return data
163
163
164
164
@@ -185,12 +185,11 @@ def example_data():
185
185
ax .set_varlabels (spoke_labels )
186
186
187
187
# add legend relative to top-left plot
188
- plt .subplot (2 ,2 , 1 )
188
+ plt .subplot (2 , 2 , 1 )
189
189
labels = ('Factor 1' , 'Factor 2' , 'Factor 3' , 'Factor 4' , 'Factor 5' )
190
190
legend = plt .legend (labels , loc = (0.9 , .95 ), labelspacing = 0.1 )
191
191
plt .setp (legend .get_texts (), fontsize = 'small' )
192
192
193
- plt .figtext (0.5 , 0.965 , '5-Factor Solution Profiles Across Four Scenarios' ,
194
- ha = 'center' , color = 'black' , weight = 'bold' , size = 'large' )
193
+ plt .figtext (0.5 , 0.965 , '5-Factor Solution Profiles Across Four Scenarios' ,
194
+ ha = 'center' , color = 'black' , weight = 'bold' , size = 'large' )
195
195
plt .show ()
196
-
0 commit comments