python 画风场_python 画风矢量图
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 of
this unit.
'width' or 'height': the width or height of the axis
'dots' or 'inches': pixels or inches, based on the figure dpi
'x', 'y', or 'xy': respectively *X*, *Y*, or :math:`\sqrt{X^2 + Y^2}`
in data units
The arrows scale differently depending on the units. For
'x' or 'y', the arrows get larger as one zooms in; for other
units, the arrow size is independent of the zoom state. For
'width or 'height', the arrow size increases with the width and
height of the axes, respectively, when the window is resized;
for 'dots' or 'inches', resizing does not change the arrows.
angles : [ 'uv' | 'xy' ], array, optional
Method for determining the angle of the arrows. Default is 'uv'.
'uv': the arrow axis aspect ratio is 1 so that
if *U*==*V* the orientation of the arrow on the plot is 45 degrees
counter-clockwise from the horizontal axis (positive to the right).
'xy': arrows point from (x,y) to (x+u, y+v).
Use this for plotting a gradient field, for example.
Alternatively, arbitrary angles may be specified as an array
of values in degrees, counter-clockwise from the horizontal axis.
Note: inverting a data axis will correspondingly invert the
arrows only with ``angles='xy'``.
scale : None, float, optional
Number of data units per arrow length unit, e.g., m/s per plot width; a
smaller scale parameter makes the arrow longer. Default is *None*.
If *None*, a simple autoscaling algorithm is used, based on the average
vector length and the number of vectors. The arrow length unit is given by
the *scale_units* parameter
scale_units : [ 'width' | 'height' | 'dots' | 'inches' | 'x' | 'y' | 'xy' ], None, optional
If the *scale* kwarg is *None*, the arrow length unit. Default is *None*.
e.g. *scale_units* is 'inches', *scale* is 2.0, and
``(u,v) = (1,0)``, then the vector will be 0.5 inches long.
If *scale_units* is 'width'/'height', then the vector will be half the
width/height of the axes.
If *scale_units* is 'x' then the vector will be 0.5 x-axis
units. To plot vectors in the x-y plane, with u and v having
the same units as x and y, use
``angles='xy', scale_units='xy', scale=1``.
width : scalar, optional
Shaft width in arrow units; default depends on choice of units,
above, and number of vectors; a typical starting value is about
0.005 times the width of the plot.
headwidth : scalar, optional
Head width as multiple of shaft width, default is 3
headlength : scalar, optional
Head length as multiple of shaft width, default is 5
headaxislength : scalar, optional
Head length at shaft intersection, default is 4.5
minshaft : scalar, optional
Length below which arrow scales, in units of head length. Do not
set this to less than 1, or small arrows will look terrible!
Default is 1
minlength : scalar, optional
Minimum length as a multiple of shaft width; if an arrow length
is less than this, plot a dot (hexagon) of this diameter instead.
Default is 1.
pivot : [ 'tail' | 'mid' | 'middle' | 'tip' ], optional
The part of the arrow that is at the grid point; the arrow rotates
about this point, hence the name *pivot*.
color : [ color | color sequence ], optional
This is a synonym for the
:class:`~matplotlib.collections.PolyCollection` facecolor kwarg.
If *C* has been set, *color* has no effect.
Notes
-----
Additional :class:`~matplotlib.collections.PolyCollection`
keyword arguments:
=========================================================================================== ===============================================================================================================================================
Property Description
=========================================================================================== ===============================================================================================================================================
:meth:`agg_filter ` unknown
:meth:`alpha ` float or None
:meth:`animated ` [True | False]
:meth:`antialiased ` or antialiaseds Boolean or sequence of booleans
:meth:`array ` unknown
:meth:`clim ` a length 2 sequence of floats
:meth:`clip_box ` a :class:`matplotlib.transforms.Bbox` instance
:meth:`clip_on ` [True | False]
:meth:`clip_path ` [ (:class:`~matplotlib.path.Path`, :class:`~matplotlib.transforms.Transform`) | :class:`~matplotlib.patches.Patch` | None ]
:meth:`cmap ` a colormap or registered colormap name
:meth:`color ` matplotlib color arg or sequence of rgba tuples
:meth:`contains ` a callable function
:meth:`edgecolor ` or edgecolors matplotlib color spec or sequence of specs
:meth:`facecolor ` or facecolors matplotlib color spec or sequence of specs
:meth:`figure ` a :class:`matplotlib.figure.Figure` instance
:meth:`gid ` an id string
:meth:`hatch ` [ '/' | '\\' | '|' | '-' | '+' | 'x' | 'o' | 'O' | '.' | '*' ]
:meth:`label ` string or anything printable with '%s' conversion.
:meth:`linestyle ` or dashes or linestyles ['solid' | 'dashed', 'dashdot', 'dotted' | (offset, on-off-dash-seq) | ``'-'`` | ``'--'`` | ``'-.'`` | ``':'`` | ``'None'`` | ``' '`` | ``''``]
:meth:`linewidth ` or linewidths or lw float or sequence of floats
:meth:`norm ` unknown
:meth:`offset_position ` unknown
:meth:`offsets ` float or sequence of floats
:meth:`path_effects ` unknown
:meth:`picker ` [None|float|boolean|callable]
:meth:`pickradius ` unknown
:meth:`rasterized ` [True | False | None]
:meth:`sketch_params ` unknown
:meth:`snap ` unknown
:meth:`transform ` :class:`~matplotlib.transforms.Transform` instance
:meth:`url ` a url string
:meth:`urls ` unknown
:meth:`visible ` [True | False]
:meth:`zorder ` any number
=========================================================================================== ===============================================================================================================================================
See Also
--------
quiverkey : Add a key to a quiver plot
python 画风场_python 画风矢量图相关推荐
- 用python画大雄_python制作斗图生成器
网上各种带文字的表情图片都被大家玩坏了,今天就和大家一起用 python 亲自做一个带字表情图片生成器. 不知道大家有没有看到网上有很多人都在说 "人生苦短,我用 python", ...
- python 画风矢量图
python 画风矢量图参考 Quiver plot arrow aspect ratio https://stackoverflow.com/questions/12079842/quiver-pl ...
- java矢量图_你见过js画出这样的矢量图以及动画特效吗?
js 画出几十种矢量图 raphaeljs 超炫丽的动画效果 3.动态曲线图 ---- js 画图 raphaeljs demo http://raphaeljs.com/analytics.ht ...
- Python零基础学习 | 分享一个使用Python画出太极阴阳八卦图的代码
大家好,我是王某人. 一.写在前面 前几天在Python技术交流群有个小伙伴分享一个使用Python画出太极阴阳八卦图的代码,这里拿出来给大家分享下,一起学习下. 不过这里他的代码是有点问题的,不过不 ...
- df python 增加数据_美国确诊超100万!教你用Python画出全球疫情动态图(附数据下载)...
CDA数据分析师 出品 [导语]:今天我们教你用Python绘制全球疫情动态图,技术部分请看第二部分. 获取数据:扫描下方公众号回复关键字"全球疫情" 目前,全球新冠疫情还十 ...
- 用Visio画深度学习模型矢量图
在写深度学习相关论文时,我们常常需要把模型机构画出来.绘图工具也千差万别,我们一般采用PPT和Visio画图工具.画图以后我们尽可能的使得图片美观,且图片最好为矢量图,图片中的文字可以复制,更重要的是 ...
- Python生成图片到visio的矢量图
python 保存为svg import matplotlib.pyplot as plt# 随意绘制一个样图 plt.plot([1,2,3,4,3,2,3])plt.savefig('fig1.s ...
- 美国确诊超100万!教你用Python画出全球疫情动态图
目前,全球新冠疫情还十分严峻.截止4月29日,疫情突破多个标志性的统计节点.其中,全球累计确诊近296万例,累计死亡超20万例:美国累计确诊超100万例,西班牙和意大利累计确诊均超过20万例. 01 ...
- python画箭头_python画折线示意图实例代码
python画折线图方法 前做PPT要用到折线图,嫌弃EXCEL自带的看上去不好看,就用python写了一个画折线图的程序. import matplotlib.pyplot as plt x=[1, ...
最新文章
- 10、kubernetes 核心技术-Secret、ConfigMap
- 让隔壁同事哇塞的IDEA主题!
- 对现代软件工程开发看法
- 解决获取请求参数的乱码问题
- android 混合开发 图片,混合开发的大趋势之一React Native之Image
- 亚马逊云计算业务上半年营收210亿美元
- [Music]乡村摇滚:Any man of mine
- java基础菜鸟教程_java基础菜鸟教程大全,java入门
- 信息检索方法和步骤——怎样展开信息检索?
- java 匿名邮件_java开发邮件发送(匿名)
- SQL SERVE 2008远程连接 提示sqlserver远程主机强迫关闭了一个现有连接
- 什么缩写是mzj_mzjh是什么意思,mzjh缩写代表什么意思,mzjh是什么含义
- gms认证流程_申请谷歌GMS认证MADA协议流程
- servlet 3.0 slf4j +log4j2 始终无法写入log文件的解决
- 越小越好:小型化射频-第2部分
- 杂谈_怎样写好英语字
- 教你把Pycharm编辑器更改为黑色主题
- t3普及版选择服务器后未响应,T3普及版11.0在新建帐套或者修改账套时 经常出现 未响应状态 请问怎么处理...
- .net core 监听文件夹变化, FileSystemWatcher 封装
- ORACLE 11G 闪回数据归档