Hello,

please try this.

from matplotlib.pyplot import *
plot([1,2,3], label="very loooooooong label")
plot([3,2,1], label="very loooooooong label2")
legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
show()

The code puts a legend with very long label text outside the figure.
When drawing only the beginning of the legend is visible.
Is there a way to automatically correct the area of figure and resize it
such that every box drawn is visible?
I know I can overcome this issue by using subplots. But this would only
work to a certain extend of the problem.

Regards
Eymen


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to