基于长度matplotlib颤抖的着色箭头

时间:2020-05-04 14:14:04

标签: python python-3.x numpy matplotlib data-visualization

我是python的新手,遇到了一个问题。

要可视化矢量场,我正在读取outputfile db "myfile.txt" outhandle db ? mov dx, offset outputfile mov cx, 0 mov ah, 3Ch int 21h mov outhandle, ax 坐标及其位移。使用matplotlib颤抖。现在我想根据箭头的长度进行着色,但是现在是随机的,没有多大意义。我浏览了一些stakckoverflow帖子,这是我到目前为止添加的内容。

x,y,u,v

python代码

color_array = np.sqrt(((x[skip]-n)/2)**2 + ((y[skip]-n)/2)**2)

enter image description here

0 个答案:

没有答案
相关问题