Re: [Matplotlib-users] twinx and grid

2014-02-09 Thread Goyo
2014-02-09 2:29 GMT+01:00 garyr : > The script below labels both the left and right x-axes and shows a grid. Is > there a way to force the horizontal grid lines to line up with the tic marks > on > the left axis (ax1)? > > import numpy as np > import matplotlib.pyplot as plt > fig = plt.figure() >

[Matplotlib-users] twinx and grid

2014-02-08 Thread garyr
The script below labels both the left and right x-axes and shows a grid. Is there a way to force the horizontal grid lines to line up with the tic marks on the left axis (ax1)? import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(111) t = np.arange(0.01, 10.0