nschloe/matplotlib2tikz — pull request #22 by mschluet (2013-03-18 21:03:08+00:00)
Title: error in _draw_legend

'reference before assignment' error when legend is in standard
(upper right) position. Fixed by setting 'position' and 'anchor' to
'None' if 'legend._loc==1'