major/minor grid settings in matplotlibrc

Hi,

A friend was just asking me about how to set grid style in matplotlibrc
to separate settings for minor and major grids.
As far as I understand, it's not possible because the rc file only
includes the following options :

grid.color, grid.linestyle and grid.linewidth

Would it make sense to add also grid.major.* and grid.minor.* (as it
already exists for xticks) ?

best,
Pierre

Sorry if this question was already discussed. I though it was, but a few
Google searches didn't point me to relevant content.

any feedback ?

···

Le 31/05/2013 13:15, Pierre Haessig a écrit :

Would it make sense to add also grid.major.* and grid.minor.* (as it
already exists for xticks) ?

--
Pierre

Hi Pierre,

Thanks for asking on the ML for me :slight_smile:

I dived into the code and came up with a PR (link at the end)
In short, in the constructor of Ticks , self.gridOn is set to the value of rcParam.axes.grid regardless
of wether the Ticks is Major or Minor.

I proposed one fix, but I'm not sure it is the right one and will wait for feedback.
Also My PR will probably conflict with a bigger one so I suppose I won't be in the priority list.

Thanks,

···

--
Matthias
(Pierre, BTW, nice blog post.)

Le 3 juin 2013 à 09:09, Pierre Haessig a écrit :

Le 31/05/2013 13:15, Pierre Haessig a écrit :

Would it make sense to add also grid.major.* and grid.minor.* (as it
already exists for xticks) ?

any feedback ?
--
Pierre

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options