CoolFace
Apppublic

Aluode/PerceptionLabPortable

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

2�Yi��	@s�dZddlZddlZddlZddlmZddlm	Z3ddlmZdejvrCe�
�Ze�ejj�e�ejj�e�dd�ej
�e�e�d�Ze4��Ze��e�d	�ejd5d�e6��Ze� ddd�e�!d
�e�"e�e�#ej$j%dd�d�a&e7j't&dddd�Z(e(� ddd�e(�)ddd�e�"e(�e�*ddd8�Z+e�*ddd9�Z,de+�-d10d�de,�-dd11�da&e12j'e+e,t&dddd�Z.e.�)ddd�e�"e.�e�#ej$j%dd�d�a&e�*dd d13�Z+e�*dd d14�Z,ej/d!ej0d"�Z1e�2e�3e+�-d15d�de,�-dd16�dd#�dd�e1d$<e1d$e1d%<e17j't&e1�-d&d�dd'd(�Z4e4� ddd�e4�)ddd�e�"e4�d)Z5d*Z6e�*dde5d��-e5dd�Z+e�*dde6d��-de6d�Z,e+de,ddZ7e7d#dZ8e�9dej:dej:d+�Z;e�<e7ej=d,fe;�-e;j>ddd��e8ej=d,fa&e18j'e+dd�dfe,ddd�fd-d'd'd.�a?e�@gd/��t?�A�d0<t?�)d
d
d�e�"t?�daBd1d2�ZCe�D�ZEeEjF�GeC�eE�Hd3�eId4k�r�e�J�dSdS)5z919This example demonstrates the use of GLSurfacePlotItem.20�N)�QtGui)�QtCore�darwin��zGLSurfacePlot Examplez pyqtgraph example: GLSurfacePlot�2)Zdistance��21)rr)�size)rrZshaded)��?rrrT)�z�shader�color�showGridg9/����?g�?i����i�����g�������?ZnormalColor)��?rrr)�x�yrr
rZ	lineColori����i�����)rrr)Zdtyper).r).ri�	F)r�colorsr
�smooth�Z�dg4@.ZheightColor)rrr
ZcomputeNormalsr)	皙�����?rrrrrrrrZcolorMapcCs&td8atjtttjdd�dS)Nrr)r)�index�p4ZsetDatar�shape�rr��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\pyqtgraph/examples/GLSurfacePlot.py�update\sr��__main__)K�__doc__�sys�numpy�npZ	pyqtgraphZpgZpyqtgraph.QtrZpyqtgraph.openglZopengl�glr�platformZQSurfaceFormat�fmtZsetRenderableType�RenderableTypeZOpenGLZ22setProfileZOpenGLContextProfileZCoreProfileZ23setVersionZsetDefaultFormatZmkQAppZappZGLViewWidget�w�showZsetWindowTitleZsetCameraPositionZ24GLGridItem�g�scaleZ
setDepthValueZaddItemZgaussianFilter�random�normalrZGLSurfacePlotItem�p1�	translateZlinspacerrZreshapeZp2ZonesZfloat32rZclip�cosZp3�cols�rows�dZd2Zarange�pi�phi�sinZnewaxisrr�arrayr
rrZQTimerZtimer�timeout�connect�start�__name__�execrrrr�<module>s�252627282930$�318326,333435�
Aluode/PerceptionLabPortable · CoolFace