You can have a look at this: https://groups.google.com/d/msg/pyqtgraph/LdPFmNfou9o/d0i70nRAAAAJ
Il giorno sabato 20 giugno 2020 14:07:41 UTC+2, andrea gotelli ha scritto: > > Hi, > > In a plot I would like to display different data. This results in having > some problems with performance some times. For example, I must generate a > grid, that has a custom X spacing and Y spacing. To achieve that, I do the > following: > > # Plot the lines in a 10x10 world > for a in range( int(5/xSpacing) ): > p1.plot([a*xSpacing, a*xSpacing], [-5, 5], pen=(150, 150, 150)) > p1.plot([-a*xSpacing, -a*xSpacing], [-5, 5], pen=(150, 150, 150)) > > for b in range( int(5/ySpacing) ): > p1.plot([-5, 5], [b*ySpacing, b*ySpacing], pen=(150, 150, 150)) > p1.plot([-5, 5], [-b*ySpacing, -b*ySpacing], pen=(150, 150, 150)) > > > This approach works. But if the lines that have to be displayed became a > lot, than I experience lag. > > Is there a way to plot these segments by using only one plot? > > Thank you in advance. > > -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/ee83f1dc-bf04-4028-b05f-2b4c90a829e3o%40googlegroups.com.
