![]() ![]() Img = ax1.imshow(X, vmin=-1, vmax=1, interpolation="None", cmap="RdBu")įig.canvas.draw() # note that the first draw comes before setting dataĪxbackground = _from_bbox(ax1.bbox)Īx2background = _from_bbox(ax2.bbox) #Libavg matplotlib code#I have modified your code a bit and compared the frame rate with and without the use of blit. ![]() It supports Win7 Touch, Linux Drivers, TUIO and even the Apple. libavg is great for multitouch development. It allows programmers, media artists and designers to quickly develop media applications, uses python as scripting language and is written in high-speed C++. Although this article mentions that blit causes strong memory leakage, I could not observe that. Libavg is a high-level development platform for media-centric applications. Now, as has been suggested in many posts, like here or here, using blit might be an option. ImportanceOfBeingErnest shows how you can use blit for faster plotting, but it's not as simple as putting something different in the redraw_figure function (you need to keep track of what things to redraw).įirst of all, the code that is posted in the question runs with 7 fps on my machine, with QT4Agg as backend. Their happiness would probably trickle through to their friends and relatives, and their friends and relatives, and so on, so that you could potentially improve the lives of billions. So, if anybody has an answer, you would directly make me and thousands of others very happy. It just updates when in the Python console when the interpreter waits for user input.īut at least on my system, that does not redraw the plots at all. #Libavg matplotlib update#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |