Change column number within legend

Hi all,

this is my first eMail to a mailing list, I hope I’m not messing it up. I posted my question already on stackoverflow, but apparently there’s no simple solution to it:

http://stackoverflow.com/questions/17909251/pyplot-change-ncols-within-a-legend

In other words, I have a Figure with a many-entries-legend, but the legend text for most but not all of the object is very short. I’d like to use two or more columns for those short entries and switch back to single column mode when dealing with the longer legend entries.

Two options came to my mind. One, make the legend work like a multicolumn-table in LaTeX or, two, having a container with multiple, well-aligned legends with individual properties for each one.

I tried to solve my problem by setting up two legends. The downside is the need for additional aligning of the two legends. Even this is still beyond my skills.

Thanks, Tyrax

could you use the bbox_to_anchor keyword to place your legend in a precise way so that they could be alignd?
sorry ,this is the only way I could think of (But I am not a real expert in matplotlib)

Chao

···

On Sun, Aug 4, 2013 at 5:45 PM, Tyrax [via matplotlib] <[hidden email]> wrote:

Hi all,

this is my first eMail to a mailing list, I hope I’m not messing it up. I posted my question already on stackoverflow, but apparently there’s no simple solution to it:

http://stackoverflow.com/questions/17909251/pyplot-change-ncols-within-a-legend

In other words, I have a Figure with a many-entries-legend, but the legend text for most but not all of the object is very short. I’d like to use two or more columns for those short entries and switch back to single column mode when dealing with the longer legend entries.

Two options came to my mind. One, make the legend work like a multicolumn-table in LaTeX or, two, having a container with multiple, well-aligned legends with individual properties for each one.

I tried to solve my problem by setting up two legends. The downside is the need for additional aligning of the two legends. Even this is still beyond my skills.

Thanks, Tyrax


Get your SQL database under version control now!

Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.

http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk


Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


If you reply to this email, your message will be added to the discussion below:

http://matplotlib.1069221.n5.nabble.com/Change-column-number-within-legend-tp41704.html

To start a new topic under matplotlib - users, email [hidden email]

  To unsubscribe from matplotlib, click here.


  [NAML](http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml)


Chao YUE
Laboratoire des Sciences du Climat et de l’Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex

Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16



View this message in context: Re: Change column number within legend

Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi Chao,

I think I could make it work somehow but I thought that such a functionality
would be really nice to have in general.

Tyrax

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Change-column-number-within-legend-tp41704p41709.html
Sent from the matplotlib - users mailing list archive at Nabble.com.