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