Both are correct, but I get different lines when running the following code on python2.7 vs python3.2:
import matplotlib.pyplot as plt
import numpy as np
x, y = np.arange(8), np.arange(10)
data = u = v = np.linspace(0, 10, 80).reshape(10, 8)
v = np.sin(v * -0.6)
plt.streamplot(x, y, u, v)
Obviously this makes testing streamplotting quite tricky and would be nice if we could make the results consistent.
@tonysyu any ideas where to start looking?
Looks like it could be division issues. from __future__ import division seems to solve.
from __future__ import division
Handled future division changes for python3 (fixes #1194).
Looks like you asked, debugged, and solved the problem before I even saw the issue. Thanks ;)