<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 350: Order of major and minor gridlines drawing</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/350/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/feature-requests/350/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/feature-requests/350/</id><updated>2012-10-31T15:19:55Z</updated><subtitle>Recent changes to 350: Order of major and minor gridlines drawing</subtitle><entry><title>Order of major and minor gridlines drawing</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/350/" rel="alternate"/><published>2012-10-31T15:19:55Z</published><updated>2012-10-31T15:19:55Z</updated><author><name>Justin Gregory</name><uri>https://sourceforge.net/u/jmgregory/</uri></author><id>https://sourceforge.netf08f9fd968a8222223f28ca2ba1fa79ad6ebdfad</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm running gnuplot 4.7 on OS X 10.7.5, but this bug probably affects all platforms.&lt;/p&gt;
&lt;p&gt;The current order for drawing gridlines in 2D plots appears to be:&lt;/p&gt;
&lt;p&gt;Major Y-Axis&lt;br /&gt;
Minor Y-Axis&lt;br /&gt;
Major X-Axis&lt;br /&gt;
Minor X-Axis&lt;/p&gt;
&lt;p&gt;This causes the minor gridlines for the X axis to be draw on top of the major gridlines of the Y axis.  This issue is most likely to show up when using gridlines of different colors/weights in logarithmic plots.  The correct order should probably be:&lt;/p&gt;
&lt;p&gt;Minor Y-Axis&lt;br /&gt;
Minor X-Axis&lt;br /&gt;
Major Y-Axis&lt;br /&gt;
Major X-Axis&lt;/p&gt;
&lt;p&gt;which ensures that all of the major gridlines overlay the minor gridlines.&lt;/p&gt;
&lt;p&gt;The following code reproduces the bug.  In the correct scenario there should be no blue lines overlaying red lines:&lt;/p&gt;
&lt;p&gt;set grid lw 4 lc rgb "#FF0000", lw 2 lc rgb "#0000FF"&lt;br /&gt;
set grid mxtics&lt;br /&gt;
set grid mytics&lt;br /&gt;
set mxtics&lt;br /&gt;
set mytics&lt;br /&gt;
plot 0 notitle&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>