Horizontal bar is possible, although i'm not sure it fits your need.

http://matplotlib.sourceforge.net/examples/pylab_examples/barh_demo.html

Anyhow, with the current mpl, I guess it is much easy to make the
horizontal bars with rectangle patches (in case barh does not do what
you want), rather than trying to rotate the legend.

-JJ



On Sun, Mar 1, 2009 at 3:34 AM, Naoli <na...@tuxfamily.org> wrote:
> Hi,
>
> thanks for the answer. That's what I thought.
> I'm using a bar chart plot to do a Gantt Project planner (please see
> example). Since it's not possible to draw horizontal bars, I plot a "normal"
> bar chart (vertical bars) and rotate the whole figure (please see attached
> file), this is why I need the legend to be 90°-rotated, so that it's in the
> right position afterall.
>
> Thanks for your time.
>
> Regards.
>
> N.
>
>
> 2009/3/1 Jae-Joon Lee <lee.j.j...@gmail.com>
>>
>> I don' think these is a straight forward way to rotate the legend as a
>> whole.
>> As a matter of fact, it is hardly possible with the current
>> implementation of the legend class. Could you explain why do you want
>> to have a rotated legend? An example figure (from other plotting
>> package) will be very helpful. If a rotated legend is desirable, I'll
>> work on to support it.
>>
>> Regards,
>>
>> -JJ
>>
>>
>> On Sat, Feb 28, 2009 at 4:10 AM, Naoli <na...@tuxfamily.org> wrote:
>> > Hi guys,
>> >
>> > I was wondering if it's possible to rotate a legend ?
>> >
>> > Thanks for your help.
>> >
>> > Naoli
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Open Source Business Conference (OSBC), March 24-25, 2009, San
>> > Francisco, CA
>> > -OSBC tackles the biggest issue in open source: Open Sourcing the
>> > Enterprise
>> > -Strategies to boost innovation and cut costs with open source
>> > participation
>> > -Receive a $600 discount off the registration fee with the source code:
>> > SFAD
>> > http://p.sf.net/sfu/XcvMzF8H
>> > _______________________________________________
>> > Matplotlib-users mailing list
>> > Matplotlib-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> >
>> >
>
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to