how to create a barh chart, right to left

I am a matplotlib newbie. I am trying to create a Population Pyramid chart, see examples here.

http://bm2.genes.nig.ac.jp/RGM2/R_current/library/epicalc/man/pyramid.html

I am trying to draw this as two horizontal bar charts (barh) back to back.

How do I make the left chart display right to left instead of the default left to right?

Also, are there examples of this type of chart drawn in matplotlib available?

Thanks

Kevin

No, but we should add this as a plotting function -- it could be done
fairly easily with a collections.BrokenBarHCollection or simply a list
of Rectangles. Any takers?

JDH

···

On Fri, May 15, 2009 at 9:59 AM, kevin gill <kevin.gill@...2604...> wrote:

I am a matplotlib newbie. I am trying to create a Population Pyramid
chart, see examples here.

http://bm2.genes.nig.ac.jp/RGM2/R_current/library/epicalc/man/pyramid.html

I am trying to draw this as two horizontal bar charts (barh) back to back.

How do I make the left chart display right to left instead of the
default left to right?

Also, are there examples of this type of chart drawn in matplotlib
available?

adjust your xlim in a way that xmax is 0, i.e., xlim(10, 0).

-JJ

···

On Fri, May 15, 2009 at 10:59 AM, kevin gill <kevin.gill@...2604...> wrote:

How do I make the left chart display right to left instead of the
default left to right?