[matplotlib-devel] Experiments and questions / OpenGL backend

2011-07-27 Thread Nicolas Rougier


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 and the test file is at 
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--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


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

2011-07-27 Thread Benjamin Root
On Wednesday, July 27, 2011, Nicolas Rougier 
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
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] errorbar layering issue?

2011-07-27 Thread Benjamin Root
I have come across an odd layering issue with errorbars.  The errorbar caps
are not drawn at the same layer as the errorbar itself.  Also, the line
connecting multiple errorbars are plotted on a completely different layer
than the errorbars.  I am attaching an example demonstrating this.  Note the
green caps are showing up on top of the red errorbar, meanwhile, the red
errorbar is drawn on top of the green errorbar.  Also notice that the thin
red line connecting the red errorbars is showing up on top of the green cap
for lambda = 1.

I am not exactly sure how this should be fixed.  It is most likely an issue
with the fact that the caps are drawn as markers instead of a line (I am
guessing so that the marker would then be sized based on width in points
instead of data).  When an axes' child objects are z-sorted, the objects
that do not declare a z-order are loaded in the order of their creation (or
is it in some arbitrary order based on the type of collection?).

Cheers,
Ben Root
<>--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Matplotlib-devel Digest, Vol 62, Issue 10

2011-07-27 Thread David Kaplan
Hi,

I will be on vacation with limited email from July 14 to August 7, 2011.

Bonjour,

Je serai en conge du 14 juillet jusqu'au 7 aout, 2011.

--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel