如何根据pyqtgraph中的GPS坐标绘制图形?

时间:2021-09-13 23:03:27

I have a data set which contains latitude and longitude.(These are car racing data ) I like to draw a map in pyqtgrapgh based on this coordinates and then interact with it. The problem is I cannot find the proper way to draw the map with the current pyqtgrapgh api. (or maybe I am missing something). Does anybody know how can I draw the map with pyqtgraph?

我有一个包含纬度和经度的数据集。(这些是赛车数据)我喜欢在pyqtgrapgh中根据这个坐标绘制一张地图,然后与之交互。问题是我找不到用当前pyqtgrapgh api绘制地图的正确方法。 (或许我错过了什么)。有谁知道如何用pyqtgraph绘制地图?

1 个解决方案

#1


I would start with Qt's primitives like QGraphicsPathItem or QGraphicsPolygonItem. If you are starting from a numpy array of coordinates, then you might find pg.arrayToQPath() useful as well.

我将从Qt的原语开始,如QGraphicsPathItem或QGraphicsPolygonItem。如果您从一个numpy坐标数组开始,那么您可能会发现pg.arrayToQPath()也很有用。

#1


I would start with Qt's primitives like QGraphicsPathItem or QGraphicsPolygonItem. If you are starting from a numpy array of coordinates, then you might find pg.arrayToQPath() useful as well.

我将从Qt的原语开始,如QGraphicsPathItem或QGraphicsPolygonItem。如果您从一个numpy坐标数组开始,那么您可能会发现pg.arrayToQPath()也很有用。