def print_label(self, linecontour,labelwidth):
lcsize = len(linecontour)<EOL>if lcsize > <NUM_LIT:10> * labelwidth:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>xmax = np.amax(linecontour[:,<NUM_LIT:0>])<EOL>xmin = np.amin(linecontour[:,<NUM_LIT:0>])<EOL>ymax = np.amax(linecontour[:,<NUM_LIT:1>])<EOL>ymin = np.amin(linecontour[:,<NUM_LIT:1>])<EOL>lw = labelwidth<EOL>if (xmax - xmin) > <NUM_LIT>* lw or (ymax - ymin) > <NUM_LIT> * lw:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>
if contours are too short, don't plot a label