@image_comparison(baseline_images=[u'legend_auto3'])
def test_legend_auto3():
 fig = plt.figure()
 ax = fig.add_subplot(111)
 x = [0.9, 0.1, 0.1, 0.9, 0.9, 0.5]
 y = [0.95, 0.95, 0.05, 0.05, 0.5, 0.5]
 ax.plot(x, y, u'o-', label=u'line')
 ax.set_xlim(0.0, 1.0)
 ax.set_ylim(0.0, 1.0)
 ax.legend(loc=0)

@ image_comparison ( baseline_images = [ u'legend_auto3' ] ) def test_legend_auto3 ( ) : fig = plt . figure ( ) ax = fig . add_subplot ( 111 ) x = [ 0.9 , 0.1 , 0.1 , 0.9 , 0.9 , 0.5 ] y = [ 0.95 , 0.95 , 0.05 , 0.05 , 0.5 , 0.5 ] ax . plot ( x , y , u'o-' , label = u'line' ) ax . set_xlim ( 0.0 , 1.0 ) ax . set_ylim ( 0.0 , 1.0 ) ax . legend ( loc = 0 )
test automatic legend placement .