Home > backend, GSOC2015, kivy, matplotlib > backend_kivy and backend_kivyagg working with matplotlib 1.4.3, python2 and python3.

backend_kivy and backend_kivyagg working with matplotlib 1.4.3, python2 and python3.

Initially backend_kivy was implemented using matplotlib 1.5.1dev which is an unstable release. Small modifications were made based on the changes matplotlib has between 1.4.3 (stable) and 1.5.1dev. Some of the main points that were updated were the generation of MathText and the lines rendering in draw_path. Additionally in the case of backend_kivyagg a read-only memory view was sent from the agg renderer to the kivy backend, a writable copy had to be created due to an exception in cython for loading read-only buffers. Some other improvements involve a bug when the application was being closed which was fixed by adding an on_close event in the app and setting the global var app to None, another improvement is the generation of images from the plots. In the case of backend_kivy the figure canvas widget is being exported to png using the export_to_png(filename). A bug was reported when the FigureCanvasKivy is added to a BorderLayout and the window is resized. For instance if we have a button on top of the figure canvas, when resized the figure canvas is resized to the size of the window moving the button up but then is scaled down again and the dimensions are right. This arises in the backend_kivy due to a small delay that keeps the calculation of the positions in this case of the button out of the canvas. In backend_kivyagg this does not happen due to a fast transition so the button position is calculated correctly. (still an open issue and working on that for backend_kivy.)

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: