Thank you for the hint. I do agree with you. This library is very 
efficient! Considering that I started to use it since last week, and I 
never coded in python before, it is very intuitive! Also this community is 
very helpful!!

Il giorno lunedì 22 giugno 2020 11:39:43 UTC+2, Edmondo Giovannozzi ha 
scritto:
>
> 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/e0e6fe71-9469-4455-9e79-dd4035d50980o%40googlegroups.com.

Reply via email to