python 画风场_python 画风矢量图

这篇内容主要介绍了如何利用Python进行风场矢量图的绘制,引用了多个Stack Overflow上的讨论,包括如何调整箭头比例和使matplotlib与MATLAB的输出匹配。还提到了基于python的QuikScat风场数据的可视化方法,并详细解释了matplotlib的quiver函数的参数和用法,如X、Y、U、V坐标,颜色设置,箭头尺寸单位等。
摘要由CSDN通过智能技术生成

python 画风矢量图参考

Quiver plot arrow aspect ratio

https://stackoverflow.com/questions/12079842/quiver-plot-arrow-aspect-ratio

2D quiver plot - matplotlib and MATLAB output doesnt match

https://stackoverflow.com/questions/22568256/2d-quiver-plot-matplotlib-and-matlab-output-doesnt-match

基于python的QuikScat风场数据可视化

http://bbs.06climate.com/forum.php?mod=viewthread&tid=53589

quiver(*args, data=None, **kw) method of matplotlib.axes._subplots.AxesSubplot instance

Plot a 2-D field of arrows.

Call signatures::

quiver(U, V, **kw)

quiver(U, V, C, **kw)

quiver(X, Y, U, V, **kw)

quiver(X, Y, U, V, C, **kw)

*U* and *V* are the arrow data, *X* and *Y* set the location of the arrows, and *C* sets the color of the arrows. These arguments may be 1-D or 2-D arrays or sequences.

If *X* and *Y* are absent, they will be generated as a uniform grid.

If *U* and *V* are 2-D arrays and *X* and *Y* are 1-D, and if ``len(X)`` and ``len(Y)`` match the column and row dimensions of *U*, then *X* and *Y* will be expanded with :func:`numpy.meshgrid`.

The default settings auto-scales the length of the arrows to a reasonable size.

To change this behavior see the *scale* and *scale_units* kwargs.

The defaults give a slightly swept-back arrow; to make the head a

triangle, make *headaxislength* the same as *headlength*. To make the

arrow more pointed, reduce *headwidth* or increase *headlength* and

*headaxislength*. To make the head smaller relative to the shaft,

scale down all the head parameters. You will probably do best to leave

minshaft alone.

*linewidths* and *edgecolors* can be used to customize the arrow

outlines.

Parameters

----------

X : 1D or 2D array, sequence, optional

The x coordinates of the arrow locations

Y : 1D or 2D array, sequence, optional

The y coordinates of the arrow locations

U : 1D or 2D array or masked array, sequence

The x components of the arrow vectors

V : 1D or 2D array or masked array, sequence

The y components of the arrow vectors

C : 1D or 2D array, sequence, optional

The arrow colors

units : [ 'width' | 'height' | 'dots' | 'inches' | 'x' | 'y' | 'xy' ]

The arrow dimensions (except for *length*) are measured in multiples

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值