@@ -77,7 +77,7 @@ def bulls_eye(ax, data, cmap=None, norm=None, raidal_subdivisions=(2, 8, 8, 11),
7777 ax .plot ([theta_i , theta_i ], [r [rs_id ], r [rs_id + 1 ]], colors_bound , lw = line_width )
7878 # Add centered nomenclatures if needed, with selected colour
7979 if add_nomenclatures :
80- if rs == 1 and rs_id == 0 :
80+ if rs == 1 and rs_id == 0 :
8181 cell_center = (0 , 0 )
8282 else :
8383 cell_center = ((theta_i + theta_i_plus_one ) / 2. , r [rs_id ] + .5 * r [1 ] )
@@ -89,7 +89,7 @@ def bulls_eye(ax, data, cmap=None, norm=None, raidal_subdivisions=(2, 8, 8, 11),
8989 sign , perc = nomenclature_white [0 ], int (nomenclature_white [1 :]) / 100.
9090 data_interval = np .max (data ) - np .min (data )
9191 if sign == '>' :
92- if data [cell_id ] > perc * data_interval + np .min (data ):
92+ if data [cell_id ] > perc * data_interval + np .min (data ):
9393 color_nomenclature = 'w'
9494 if sign == '<' :
9595 if data [cell_id ] < perc * data_interval + np .min (data ):
@@ -223,7 +223,7 @@ def confusion_matrix(confusion_data_frame, annotation_data_frame=None, fig_size=
223223 data = np .array (range (29 )) + 1
224224
225225 # TEST bull-eye three-fold
226- if False :
226+ if True :
227227
228228 fig , ax = plt .subplots (figsize = (12 , 8 ), nrows = 1 , ncols = 3 ,
229229 subplot_kw = dict (projection = 'polar' ))
@@ -297,7 +297,7 @@ def confusion_matrix(confusion_data_frame, annotation_data_frame=None, fig_size=
297297
298298 plt .show (block = True )
299299
300- if True :
300+ if False :
301301 d = {'one' : pd .Series ([1. , 2. , 3. ], index = ['a' , 'b' , 'c' ]),
302302 'two' : pd .Series ([1.5 , 2.5 , 3.5 , 4.5 ], index = ['a' , 'b' , 'c' , 'd' ])}
303303 df = pd .DataFrame (d )
0 commit comments