CoolFace
Apppublic

Aluode/PerceptionLabPortable

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

2�Yi3�@sRdZddlZddlZej�d�dZdd�ee�D�Z	ej3dd�Ze�d	�e�
d4d�ejdd
�Ze��Zeje	dd�e�e�dd�Zejdd
�Ze��Zeje	dd�e�e�e�e�e��ejdd
�Ze��Zeje	dddd�e�e�ejdd
�Ze��Zejdd�ee�D�e	dddd�e�e�edkr�e��dSdS)z"5Demonstrate usage of BoxplotItem6�N��cCsg|]7}tj�ddd��qS)i����)�np�random�normal)�.0�_�r��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\pyqtgraph/examples/BoxplotItem.py�8<listcomp>9�r
T)�showzpyqtgraph example: BoxplotItemri z1.5IQR whiskers)�title�g)�data�symbolBrushcCst|�t|�fS)N)�min�max)�drrr�min_max_whiskersrzUse min and max as whiskerszHorizontal boxplotF�star)r�locAsX�symbolrzCustomize box positionscCsg|]10}||dd�qS)��r)r	�irrrr
.r)�locrrrr�__main__)�__doc__�numpyrZ	pyqtgraphZpgr�seed�n�rangerZGraphicsLayoutWidget�winZsetWindowTitle�resizeZaddPlot�p1ZBoxplotItemZbp1ZsetDataZaddItemrZp2Zbp2ZsetWhiskerFuncZnextRowZp3Zbp3Zp4Zbp4�__name__�execrrrr�<module>s>1112131415"16�
Aluode/PerceptionLabPortable · CoolFace