Where is a better place for <code>addLegend()</code>?