Skip to content

Live non-blocking matplotlib graphs using multiprocessing

Notifications You must be signed in to change notification settings

Pranavgulati/PlotterProcess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PlotterProcess

This script demonstrates using the matplotlib animated plots in a separate process so that the main process doesnt get blocked by matplotlib. this was a problem that i encountered with matplotlib and this serves as a solution

Instructions

  • you can use the code to understand how it is working, the part after ( if name == 'main': ) is the area of the main process.
  • it is advised to define the class in the main script because you would like to tweak the 'animate' function of the class to your liking
  • be advised, the animate function of the class plotter is called at a set interval periodically and you may want to tweak it depending on the data you are sending to the process

About

Live non-blocking matplotlib graphs using multiprocessing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages