python - ScatterPlotItem crashs with 7000 or more points -


i use pyqt5.5.1, python 3.4 (windows 32 & 64 bits), numpy, pyqtgraph (tested develop git branch & lastest official version)

here part of code use display scatterplot

self.widget1 = pg.graphicslayoutwidget(); self.widget1.hide();  self.p1 = self.widget1.addplot() n = 7300 s1 = pg.scatterplotitem(size=10, pen=pg.mkpen(none), brush=pg.mkbrush(0, 0, 255, 120)) pos = np.random.normal(size=(2,n), scale=1e-5) s1.setdata(pos[0], pos[1]) self.p1.additem(s1) self.widget1.show(); 

with n = 7, or 73, 730 scatterplot works.

but n = 7300 , more, crashs python.

i have trace, before crash:

qpaintdevice: cannot destroy paint device being painted r6025 - pure virtual function call 

could me find workaround or fix ?

thanks


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -