When panning text gets out of bounds

Hello,

I am writing to let you know guys that while implementing a backend I run into an issue when doing panning. Which render the texts outside the axes. I tried to solve it but I had no way to know if the text is either from inside the axes or outside. I think this perhaps need a change in backend_bases. I looked into the other backends and they have the same problem even GtkCairo.

http://imagebin.ca/v/2Coe4Nzw3hZl

The problem can be seen on there with the text inside the axes.

Thanks, Andres

There is the concept of clipping. We can choose to clip artists to a bounding box. There has been some back-n-forth on whether or not annotations should be clipped. I can’t remember what we have decided on, but that example definitely looks like evidence that they should be clipped.

By the way, please use the new python.org mailing lists.

···

On Thu, Aug 20, 2015 at 1:59 PM, Andrés Vargas <andnovar@…149…> wrote:

Hello,

I am writing to let you know guys that while implementing a backend I run into an issue when doing panning. Which render the texts outside the axes. I tried to solve it but I had no way to know if the text is either from inside the axes or outside. I think this perhaps need a change in backend_bases. I looked into the other backends and they have the same problem even GtkCairo.

http://imagebin.ca/v/2Coe4Nzw3hZl

The problem can be seen on there with the text inside the axes.

Thanks, Andres



Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

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