kivy-garden / garden.matplotlib

Matplotlib backends using kivy
MIT License
103 stars 50 forks source link

Problem with zooming rendering in backend_kivy #16

Closed andnovar closed 8 years ago

andnovar commented 9 years ago

Mpl is sending the number of vertex that are at least visible, for instance if the rectangle drawn is inside the bar it will send 0 paths since no paths are enclosed in that area. In the case of enclosing the right line it tries to create a mesh with the origin and the line enclosed. In the case of enclosing the left line since the origin and the line have the same y is just shown the line. This happens as well in Gtk and in none of the Agg backends neither backend_kivyagg. There is some clipping problem here.

screenshot from 2015-08-21 12 51 27 screenshot from 2015-08-21 12 51 35

andnovar commented 8 years ago

This is fixed with the latest matplotlib release. They are sending a bigger area.