rotating markers

Hi,

Honestly, I neglected my mpl skills lately, so I don't know whether docs
on this topic are available, but I couldn't find them either.

I would like to create a forest plot using horizontal errorbars.
Currently my marker is simply 'kd' in pylab.errorbar, where 'd' is
similar to LaTeX's \blacklozenge.

Is there a way to rotate the marker such that long cross section is
horizontal (rotation by 90 degree) and not vertical anymore?

TIA
Christian

Christian,

Looking through the code for drawing the “thin diamond”, I think you might be able to get what you want by specifying the fillstyle. It appears that different rotations are applied when the fillstyle is set to one of “bottom”, “top”, or “left”. “full” is another available fillstyle, which appears to take a unit rectangle and rotates that 45 degrees.

Probably your best bet would be the ‘top’ fillstyle, which looks like it does a 90 degree rotation.

I hope this helps,
Ben Root

···

On Wed, Nov 10, 2010 at 7:44 AM, Christian Meesters <meesters@…120…2757…> wrote:

Hi,

Honestly, I neglected my mpl skills lately, so I don’t know whether docs

on this topic are available, but I couldn’t find them either.

I would like to create a forest plot using horizontal errorbars.

Currently my marker is simply ‘kd’ in pylab.errorbar, where ‘d’ is

similar to LaTeX’s \blacklozenge.

Is there a way to rotate the marker such that long cross section is

horizontal (rotation by 90 degree) and not vertical anymore?

TIA

Christian

Thanks! Alas, this raises a NotImplementedError and although I'm still
running version 0.99 of mpl, it seems like this is not yet implemented
in the 'errorbar'-function to handle this - or am I mistaken?

I won't find the time to implement this.

Anyway, thanks again for your help. It would have been nice, but I can
live without it.

Christian

I won't find the time to implement this.

···

On Wed, 2010-11-10 at 09:18 -0600, Benjamin Root wrote:

On Wed, Nov 10, 2010 at 7:44 AM, Christian Meesters > <meesters@...2757...> wrote:
        Hi,
        
        Honestly, I neglected my mpl skills lately, so I don't know
        whether docs
        on this topic are available, but I couldn't find them either.
        
        I would like to create a forest plot using horizontal
        errorbars.
        Currently my marker is simply 'kd' in pylab.errorbar, where
        'd' is
        similar to LaTeX's \blacklozenge.
        
        Is there a way to rotate the marker such that long cross
        section is
        horizontal (rotation by 90 degree) and not vertical anymore?
        
        TIA
        Christian
        
Christian,

Looking through the code for drawing the "thin diamond", I think you
might be able to get what you want by specifying the fillstyle. It
appears that different rotations are applied when the fillstyle is set
to one of "bottom", "top", or "left". "full" is another available
fillstyle, which appears to take a unit rectangle and rotates that 45
degrees.

Probably your best bet would be the 'top' fillstyle, which looks like
it does a 90 degree rotation.

I hope this helps,
Ben Root