Questions related to draw_gouraud_triangle when writting a backend

Hello,

Sorry does anyone know what is draw_gouraud_triangle for when you write a backend ?
I am trying to find examples for this but not finding any.

Also why is this not implemented for gtk, wx and qt ?

I would also appreciate to know whether the rotation of the text is relative to the bottom-left position or the center ?

Thanks :slight_smile:

If I remember correctly, draw_gouraud_triangle is used by tripcolor when shading=‘gouraud’. Basically, it’s a gradient mesh in Adobe terms. I’m sure it’s used in a few other places as well.

As
for why it’s not implement in some backends, it’s probably either an oversight, or gradient meshes aren’t natively supported by that particular toolkit (I would guess the latter).

Finally, as far as the text rotation goes, it depends on value of text.get_rotation_mode(). The default value is to apply the rotation first, and then deal with horizontal/vertical alignment. However, a value of “anchor” will correspond to rotation about the bottom-left position. See: http://matplotlib.org/examples/pylab_examples/demo_text_rotation_mode.html for an illustration.

Hope that helps a bit!

-Joe

···

On Mon, Aug 10, 2015 at 11:15 AM, Andrés Vargas <andnovar@…149…> wrote:

Hello,

Sorry does anyone know what is draw_gouraud_triangle for when you write a backend ?
I am trying to find examples for this but not finding any.

Also why is this not implemented for gtk, wx and qt ?

I would also appreciate to know whether the rotation of the text is relative to the bottom-left position or the center ?

Thanks :slight_smile:



Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel