Matplotlib demo for electrocardiogram #486
Replies: 4 comments 20 replies
-
Cheers @vsquared! If you are not using "static mode", in your case you are using "imported mode", but it would be the same in "module mode", you can't have a drawing method like So just replace |
Beta Was this translation helpful? Give feedback.
-
It looks like 'while 1' is required to pull in the data but it seems to block anything else, eg, drawing into the window. I added a separate draw() function similar to what I do in Processing but all I get is a rotating beachball; there is no drawing. |
Beta Was this translation helpful? Give feedback.
-
@vsquared , for your first example, I would try creating a https://py5coding.org/reference/sketch_launch_repeating_thread.html |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use py5 for an app which uses a serial port connected to an Arduino UNO. Imported data is then plotted using Processing's line() call. However I get an error message that says "this.g" is null. How can I initialize "this.g" in Python? The same issue occurs with setting the background color. Source code follows:
Arduino code:
Beta Was this translation helpful? Give feedback.
All reactions