That is a very good point about this being an unnecessary visual
representation of the strain. A traditional plot of each dimension against
time in 2d would suffice. Part of my reasoning for attempting this in 3d
was a as a learning experience. For now, I think I will take your advice
and write what I need from a 2d standpoint. 3d can come later when I
improve my programming skills :D

Thanks for the help!

On Thu., Aug. 20, 2020, 5:34 a.m. JMA 1, <[email protected]> wrote:

> Greetings,
>
> I have not used the 3D plot, but the basic plot works well and you can
> plot at reasonably fast rates.  I've simulated 100 Hz update rates using a
> Worker thread and it appears to works well.  I did not look at your code to
> know if you are trying to visualize stress/strain in 3D.  Traditional type
> plotting (3 rows on a screen for x,y,z) would seem reasonable as you would
> want to analyze the data.  This is off topic, but if you get stuck try to
> focus on the problem you are trying to solve (for example capturing and
> analyzing; presenting fancy data is always secondary).
>
> Cheers,
> Justin
>
> On Thu, Aug 20, 2020 at 12:26 AM JJ D <[email protected]> wrote:
>
>>
>> Hello everyone!
>>
>> I am currently writing a program using pyqtgraph that displays strain
>> gauge readings sent over serial from an Arduino. My goal is to visualize
>> the flex in the fuselage of a carbon fibre rocket our university team is
>> building.
>>
>> Modifying some of the 3d graph example code listed here
>> <https://pyqtgraph.readthedocs.io/en/latest/3dgraphics.html>, I was able
>> to plot a line. Next I wanted to test that I could update the line live and
>> at an acceptable frame rate. So I created a 3d numpy array, passed it to a
>> GLLinePlotItem via setData() and iteratively updated the numpy array while
>> calling setData() each time. Unfortunately the graph does not seem to
>> update. I've done quite a bit of digging in the documentation, and from
>> what I've read, setData() should automatically update the line on the
>> graph.
>>
>> My code is below. Let me know if you have any ideas, or can point me to
>> documentation that will help learn how to do this properly. Also it needs
>> to be run with "python3 -i <filename.py>" right now. Thanks!
>>
>>
>> --
>> 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/c8f4963f-b29c-4276-9bda-69ba930575fen%40googlegroups.com
>> <https://groups.google.com/d/msgid/pyqtgraph/c8f4963f-b29c-4276-9bda-69ba930575fen%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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/CAKEVg3E68AKT%2BbhnNej_%2BkBmajOEjmx2RLBgx3t6Wk3EdyLTYA%40mail.gmail.com
> <https://groups.google.com/d/msgid/pyqtgraph/CAKEVg3E68AKT%2BbhnNej_%2BkBmajOEjmx2RLBgx3t6Wk3EdyLTYA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAArjTo%2B4UReszee9CitDiA9rJMYw71tqFN%2B%3D5Fkwz%2BXNBgZZXw%40mail.gmail.com.

Reply via email to