[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

[Matplotlib-users] FuncAnimation documentation problem

2014-02-08 Thread Alan G Isaac
The documentation for FuncAnimation says http://matplotlib.org/api/animation_api.html#matplotlib.animation.FuncAnimation Makes an animation by repeatedly calling a function func, passing in (optional) arguments in fargs. frames can be a generator, an iterable, or a number of frames