Custom symbol for scatter plot

33 views
Skip to first unread message

Yassine Echeblaoui

unread,
Jul 22, 2020, 8:32:05 AM7/22/20
to pyqtgraph
Hello, I'm trying to make a scatter plot with empy circle symbols:

mycustomsymbol = QtGui.QPainterPath()
mysymbol.addEllipse(QtCore.QRectF(-0.5, -0.5, 1, 1))
my_scatter_plot.setData(x, y, symbol=mycustomsymbol)

But I get the error: 
TypeError: unhashable type: 'QPainterPath'


When I searched about this, I found that it could be a bug that was fixed in the dev branch but that was in 2018, and it's still not fixed in the master branch.

Anyone can help please ?

Yassine Echeblaoui

unread,
Jul 22, 2020, 10:25:49 AM7/22/20
to pyqtgraph
I tried it with the dev version of pyqtgraph, and it actually worked. And I'm just gonna keep it like this.
Reply all
Reply to author
Forward
0 new messages