CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
Arrow.cpython-310.pyc24 linesDownload Raw Back to __pycache__
1o

2�Yi��3@s�dZddlZddlZddlmZmZe�d�Z	e�4�Ze��Z
e��e�dd�e�e
�e�d�e
jddd�Ze
jd	dd�Zejd5dddd
ddd�d�Zejddd
dddddd�Zejdd
dd
ddd�Zejdddddd�Ze�dd�e�d
d�e�dd�e�e�e�e�e�e�e�e�e�e�dddd
��eje�e� ddej!d��e�"e� dd ej!d��d!�Z#e�$e#�Z%e%j&dd"�e�e%�e%j'd#d$�Z(e(�)�e*d%kr�e�+�dSdS)&a6Display an animated arrowhead following a curve.7This example uses the CurveArrow class, which is a combination8of ArrowItem and CurvePoint.9 10To place a static arrow anywhere in a scene, use ArrowItem.11To attach other types of item to a curve, use CurvePoint.12�N)�QtCore�	QtWidgetsz
Arrow Examplei�iXzpyqtgraph example: Arrow)�row�col�i`����<�(��w�)�color�width)�angle�tipAngle�headLen�tailLen�	tailWidth�peni�������y)rr�	baseAnglerrrr�brushi����)rrrZ	headWidthrri����i����)rrrrr�13i�����i��)�xr)r�����)�loop�__main__),�__doc__�numpy�npZ	pyqtgraphZpgZpyqtgraph.QtrrZmkQAppZappZQMainWindowr14ZGraphicsLayoutWidgetZcw�show�resizeZsetCentralWidgetZsetWindowTitleZaddPlot�pZp2Z	ArrowItemZa1Za2�a3Za4ZsetPosZaddItemZsetRangeZQRectFZplot�sinZlinspace�pi�cos�cZ15CurveArrow�aZsetStyleZ
makeAnimationZanim�start�__name__�exec�r/r/��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\pyqtgraph/examples/Arrow.py�<module>sD	16171819202122:2324�
Aluode/PerceptionLabPortable · CoolFace