SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Naoli <na...@tu...> - 2009年02月28日 09:10:26
Hi guys,
I was wondering if it's possible to rotate a legend ?
Thanks for your help.
Naoli
From: Jae-Joon L. <lee...@gm...> - 2009年03月01日 06:35:37
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...@tu...> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Jae-Joon L. <lee...@gm...> - 2009年03月01日 18:54:28
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...@tu...> 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...@gm...>
>>
>> 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...@tu...> 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
>> > Mat...@li...
>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> >
>> >
>
>
From: Naoli <na...@tu...> - 2009年03月02日 12:50:40
Such a shame... Anyway, I'm glad to learn horizontal bars are possible, I'll
try it.
Thanks for your answers.
Naoli
2009年3月1日 Jae-Joon Lee <lee...@gm...>
> 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...@tu...> 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...@gm...>
> >>
> >> 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...@tu...> 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
> >> > Mat...@li...
> >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >> >
> >> >
> >
> >
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /