[matplotlib-devel] [patch] Major/Minor Grid z-order

2010-03-17 Thread Jed Frechette


With the current release 0.99.1 minor grid lines get drawn above major  
grid lines. This makes it impossible, for example, to have a dark gray  
major grid and a light gray minor grid because the minor grid will  
overwrite the major grid. I'm assuming this is a bug but maybe there is a  
design reason for this?


As far as I can tell this behaviour comes down to  
matplotlib.axis.Axis.iter_ticks returning the major ticks before the minor  
ticks. I made a one line change to matplotlib.axis.Axis.draw (attached)  
that simply reverses the order that ticks are plotted in.


I will admit though that I don't follow Matplotlib development closely and  
only tested the fix on the released version so if this has already been  
fixed or there are unintended consequences I'm not aware of please ignore  
the noise.


Thanks,

--
Jed Frechette

Lidar Guys
Mobile: 505-280-1340

grid_zorder.patch
Description: Binary data
--
Download IntelĀ® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] [patch] Major/Minor Grid z-order

2010-03-18 Thread Jed Frechette
Jed Frechette wrote:
> I made a one line change to matplotlib.axis.Axis.draw (attached) that  
> simply reverses the order that ticks are plotted in.

Argh, I knew that was to easy. This is only a partial fix because the  
horizontal minor grid still gets drawn above the vertical major grid.

--
Jed Frechette

Lidar Guys
Mobile: 505-280-1340

--
Download IntelĀ® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel