[Tutor] Tkinter and matplotlib

Phil phillor9 at gmail.com
Fri Feb 11 17:36:00 EST 2022


On 12/2/22 05:50, Dennis Lee Bieber wrote:

> 	Can't help with the "lines" references but there are a multitude of
> other things that jump out at me...

Thank you Dennis for your thoughtful reply, you went far beyond what I 
had expected.

The code that I posted was a simplified version of a project that I 
found on the Internet, I simplified it even further so that I could 
provide relevance for my question. I probably should have removed 
removed even more of the original code.

I've constructed a simple capacitor / resistor oscillator using an 
Arduino board. I'm plotting two cycles of the waveform with matplotlib 
by popping the first value from the collected readings when the count 
reaches 50. This way the displayed wave doesn't compress and so more 
resembles the view normally seen on a CRO.

My default browser uses DuckDuckGo as the search engine. I also have a 
second browser that uses Google as it's search engine. Using that 
browser, after I posted my question, I came across two more examples of 
embedding a matplotlib display on a tkinter canvas. I also discovered 
better matplotlib documentation.

Thank you again.

-- 

Regards,
Phil



More information about the Tutor mailing list