我试着在曲线网格上绘制流线,但我得到了错误,最后:
/usr/local/lib/python2.7/dist-packages/matplotlib/streamplot.pyc in streamplot(axes, x, y, u, v, density, linewidth, color, cmap, norm, arrowsize, arrowstyle, minlength, transform)
100
101 ## Sanity checks.
--> 102 assert u.shape == grid.shape
103 assert v.shape == grid.shape
104
AssertionError:
我做了matplotlib示例,它运行得很好。如何将流线绘制到该网格? 密码在下面,你可以试试。这对我来说真的很重要。在
^{pr2}$
感谢Shahar Shani Kadmiel
此函数可解决以下问题:
相关问题 更多 >
编程相关推荐