From: Cyrille R. <cyr...@gm...> - 2015-03-13 17:06:18
|
I don't think it would work like the other backends. Last time I checked, the MPL backend system would not let us achieve high performance. Currently we use Jake Vanderplas' mplexporter system that was developed for mpld3. Eventually, I guess we could expose the same interface as mpld3, i.e. replace `plt.show()` by something like `vispy.show()`. This would display a matplotlib figure with VisPy (which supports Qt, wx, and other GUI toolkits) instead of one of matplotlib's backends. In the notebook, something like `vispy.enable_notebook()` could replace matplotlib's inline PNG by a dynamic WebGL canvas. 2015-03-13 17:33 GMT+01:00 Benjamin Root <ben...@ou...>: > +1 on an OpenGL backend! Especially if I can off-load a lot of mplot3d > stuff to it! Does vispy have any plans to eventually bring that into > mainline matplotlib, or does it break too much with the standard set of > backends to make sense in matplotlib (or maybe it is too much of a > maintenance/packaging burden?) > > Ben Root > > On Fri, Mar 13, 2015 at 12:12 PM, Cyrille Rossant < > cyr...@gm...> wrote: > >> Kivy is all built on OpenGL, so it would probably be pretty >>> straightforward to generate teh image with AGG, then dump it to the screen >>> as an OpenGL texture. But it would be a bit sad to not take advantage of >>> OpenGL at all in that process. (and getting AGG to work with Kivy may be >>> less than trivial...) >>> >>> Note that vector graphics in OpenGL is a serious pain, but maybe Kivy >>> has some stuff to help? >>> >>> Also, the MPL back-end structure wasn't designed to push much of the >>> transforming, etc to the back -end, which is too bad, as that's what OpenGL >>> does well. >>> >>> But I'd still take a look at the work done to make a real OpenGL >>> back-end -- not sure how far that got, but worth a look. >>> >>> Or look at http://vispy.org/ -- and give up in MPL :-( -- or maybe not! >>> form teh vispy docs: >>> >>> "Vispy now ships a very basic and experimental OpenGL backend for >>> matplotlib." >>> >>> >> Yes, and we plan to work on this backend in the next few months. We might >> have a couple of GSoC students working partly on the OpenGL MPL backend and >> possibly on Kivy integration. >> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Matplotlib-devel mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >> >> > |