On Fri, Nov 27, 2009 at 5:17 PM, Mike Anderson <mbanderson@wisc.edu> wrote:

How can I put the bottom axis on top (or on top AND on bottom) for a barh plot?

I'm trying to mimic this, made with gnuplot:


within matplotlib, and I've come close,


Also, is it possible to just have grid lines in one direction (say, vertical), I don't think the horizontal grid is necessary.

Thanks for any help,

This example might work for your case:


You can disable lower x-axis ticks and labels by using --assuming you will try the example in an ipython -pylab

run simple_axisline4.py

ax = gca()


However this disable vertical grids as well. Maybe someone else can point you in the right direction for this.


PS: Anyone who is interested, my script for making that is here,

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Matplotlib-users mailing list