Re: [Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-14 Thread Paul Hobson
On Thu, Jun 13, 2013 at 1:33 PM, Daniel Mader danielstefanma...@googlemail.com wrote: Hi Paul, I've modified your suggestion a little, since I don't want a grid for the primary axis at all -- unfortunately to no avail, i.e. no grid line at all: import numpy import matplotlib

Re: [Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-14 Thread Daniel Mader
Hi Paul, thanks for your efforts, I've figured it out by myself by now, with you pieces of code: ax1.grid() ax2.grid() ax1.xaxis.grid(False) does the trick :) -- This SF.net email is sponsored by Windows: Build for

Re: [Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-14 Thread Daniel Mader
ah, should have been: ax1.grid() ax2.grid() ax1.yaxis.grid(False) -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___

Re: [Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-13 Thread Paul Hobson
On Thu, Jun 13, 2013 at 4:47 AM, Daniel Mader danielstefanma...@googlemail.com wrote: Hi, I need a twinx() plot with horizontal and vertical grid lines for the second axis, just like the usual grid for the first axis. I don't need or want to specify the ticks manually, though! My example

Re: [Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-13 Thread Daniel Mader
Hi Paul, I've modified your suggestion a little, since I don't want a grid for the primary axis at all -- unfortunately to no avail, i.e. no grid line at all: import numpy import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt datax = numpy.arange(50) data1 =