SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Experiments and questions / OpenGL backend

From: Benjamin R. <ben...@ou...> - 2011年07月27日 13:28:15
On Wednesday, July 27, 2011, Nicolas Rougier <Nic...@in...>
wrote:
>
>
> Hi all,
>
> I've been testing various idea around the idea of a GL backend, and I
would have a few questions.
> First, I tried to use the backend template to quickly test an empty pyglet
backend and I've been quite surprised by the bad performances. Without
drawing anything, I can hardly reach 100FPS and I wonder if I did something
wrong ? (The backend is available backend_pyglet.py <
http://www.loria.fr/~rougier/tmp/backend_pyglet.py> and the test file is
at test_backend_pyglet.py <
http://www.loria.fr/~rougier/tmp/test_backend_pyglet.py>)
>
> Second, I've been experimenting with proper anti-alias technics (using
shaders) and the results are not so bad so far (IMHO) :
> Antialiased line with thickness varying by 0.1 pixels:
> http://www.loria.fr/~rougier/tmp/aa-line.png
> (don't paid attention to the cap, it's not done yet)
>
> Antialiased circles (small circles position is increased by 0.1 pixels)
> http://www.loria.fr/~rougier/tmp/aa-circle.png
> (I can post source code if anyone is interested)
> I don't know yet if all matplotlib artists can be drawing using these
technics.
>
> My question relates to the cairo backend that now seems to support gl and
shaders. Does anyone know the status of the gl-backend and how it would
improve performances of matplotlib ? (I had a hard time finding any
information).
>
> Nicolas
Nicolas,
I want to immediately encourage you to continue on your efforts. PLEASE
make a fork on github so that we may be able to experiment better.
Cheers!
Ben Root

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /