From: Jae-Joon L. <lee...@gm...> - 2008-10-09 19:19:47
|
Although I think it is possible to calculate the bounding box of the all legends automatically, Here is a manual way. from matplotlib.patches import Rectangle l1.get_frame().set_visible(False) # make background frame of legends invisible l2.get_frame().set_visible(False) # make a large background frame rect = Rectangle((0.05, 0.75), 0.3, 0.2, # adjust these values (in normalized axes coordinate) fc="w", ec="k", transform=ax.transAxes, zorder=4) ax.add_artist(rect) I hope this help, -JJ On Thu, Oct 9, 2008 at 2:43 PM, José Alexandre Nalon <na...@te...> wrote: > Hello, > > Em Thursday 09 October 2008 13:46:52 Jae-Joon Lee escreveu: >> Meanwhile, you may try to make multiple legends as a posible workarounds. > > Thanks for your answer. That did the trick, and the figure > looks more or less as I wanted. It would look exactly as I > wanted if I could remove the border from the legends and > draw a box around the legends. How could I do that? > > (I apologize if this seems trivial. I use matplotlib a lot, > but standard functions always seem to do what I need, so I > don't go deep in its behaviour). > > -- > José Alexandre Nalon > na...@te... > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |