pyqtgraph

Fast, Real-time plotting of points using pyqtgraph and a LiDAR

强颜欢笑 提交于 2020-12-29 07:37:30
问题 I want to create a real-time, point plotting GUI. I am using the Scanse Sweep LiDAR, and at each sweep of this LiDAR (working between 1 - 10Hz) I receive approximately 1000 points (x, y) describing the LiDARs surrounding. This is a 2D LiDAR. I have looked everywhere and tried countless of code snippets for pyqtgraph, but either it crashes, is super slow or doesn't work at all. Is there a straight-forward way of creating a plotter window and upon each new scan/data delivery, push those points

Fast, Real-time plotting of points using pyqtgraph and a LiDAR

懵懂的女人 提交于 2020-12-29 07:35:08
问题 I want to create a real-time, point plotting GUI. I am using the Scanse Sweep LiDAR, and at each sweep of this LiDAR (working between 1 - 10Hz) I receive approximately 1000 points (x, y) describing the LiDARs surrounding. This is a 2D LiDAR. I have looked everywhere and tried countless of code snippets for pyqtgraph, but either it crashes, is super slow or doesn't work at all. Is there a straight-forward way of creating a plotter window and upon each new scan/data delivery, push those points

9个动图带你进入PyQtGraph的强大可视化世界

自作多情 提交于 2020-08-13 07:24:36
PyQtGraph是一个建立在PyQt/PySide之上的Python数据可视化图形界面库,其性能强、速度快,能够胜任大部分交互式的2D、3D图形绘制,可以搞定数据科学领域大量的数据可视化工作。 州的先生之前绘制的A股股票动态K线图,就是使用PyQtGraph绘制的。 A股复苏,入场还是解套?Python秒绘交互式股票K线图 PyQtGraph官方提供了很好的示例来供学习者了解PyQtGraph的功能,下面我们通过9个图形,来一窥PyQtGraph的可视化世界。 基础的数组绘制折线图 # coding:utf-8 # 作者:州的先生 # 博客:https://zmister.com from pyqtgraph . Qt import QtGui , QtCore import numpy as np import pyqtgraph as pg # 实例化一个绘图窗口 win = pg . GraphicsWindow () win . resize ( 1000 , 600 ) win . setWindowTitle ( 'PyQtGraph基础绘图示例 - zmister.com' ) # 启用抗锯齿选项 pg . setConfigOptions ( antialias = True ) # 使用addPlot()方法直接添加一个数组以绘制图形 p1 = win .

pyqtgraph: add crosshair on mouse_x graph_y

北慕城南 提交于 2020-07-20 06:28:19
问题 I want to add a vertical line following the mouse_x position (working) and a horizontal line following the curve (and not mouse_y). In the pyqtgraph crosshair example, it shows how to add a crosshair following the mouse_x and mouse_y position. But that does not help that much. The following code sets the vertical line position to mouse_x postion. But i dont know how to set the horizontal line's postion to the curves current y position (depending on where the mouse x position is). data1 =

Plot cube using pyqtgraph in python

无人久伴 提交于 2020-05-15 08:46:07
问题 I would like to plot moving cubes using pyqtgraph in python (update their positions based on given dataset). I have a sample code as follow, but I don't know how to plot cube instead of the sphere used in the code. Also, I'm very confused that why this code doesn't work for the second time running? I must close my spyder then open it again or restart kernel to run the code for the second time running. (win10, python3.7 spyder3.3.1) from pyqtgraph.Qt import QtCore, QtGui import pyqtgraph

How to find the angles to align X, Y, Z vectors to another coordinate system

丶灬走出姿态 提交于 2020-05-13 19:27:23
问题 I am trying to rotate a group of 3D points (forming a rectangular object) created using GLMeshItem in pyqtgraph and opengl. However, I am having trouble doing this. I need to align the axes of the object (T_X, T_Y, T_Z) to the axes (Q_X, Q_Y, Q_Z). The Q axes are vectors calculated from a quaternion. Steps to reproduce: 1. Make a rotation matrix from the quaternion 2. Matrix multiplication to define the Q axes i want to rotate to 3. Translate the object origin to Q. 4. Make unit vectors and

Orange的扩展插件Widgets开发(七)-GUI Control

南笙酒味 提交于 2020-04-06 23:52:39
Orange的扩展插件Widgets开发(七) -Library of Common GUI Controls gui is a library of functions which allow constructing a control (like check box, line edit or a combo), inserting it into the parent’s layout, setting tooltips, callbacks and so forth, establishing synchronization with a Python object’s attribute (including saving and retrieving when the widgets is closed and reopened) ... in a single call. Almost all functions need three arguments: the widget into which the control is inserted, the master widget with one whose attributes the control’s value is synchronized, the name of that attribute (

How can I use DateAxisItem of PyQtGraph?

心已入冬 提交于 2020-04-06 07:43:48
问题 I'm using PyQtGraph '0.9.8+gd627e39' on Python 3.6.2(32bit) and Windows 10. My goal is to plot real time data with an X-axis that shows datetime. Time Value datetime.datetime(2018, 3, 1, 9, 36, 50, 136415) 10 datetime.datetime(2018, 3, 1, 9, 36, 51, 330912) 9 datetime.datetime(2018, 3, 1, 9, 36, 51, 382815) 12 datetime.datetime(2018, 3, 1, 9, 36, 52, 928818) 11 ... I looked up related issues such as https://gist.github.com/friendzis/4e98ebe2cf29c0c2c232, pyqtgraph, plotting time series, but