Realtime graph gui plot by wxpthon and matplotlib

I am a 3rd-year student in the electrical department. I am learning about LoRa communication and the sensor will send me back the data. I want a simple example of real-time graph plotting by wxpython and matplotlib. And should be imported by using notepad. I tried to combine all the stuff that I have searched for but it didn't work. Please help.