View Single Post
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#42
MatPlotLib 1.3.1 (10/10/2013) is now released for MeeGo Harmattan, with WebAgg interactive graphical backend and many new features. So the MeeGo Harmattan release for MatPlotLib 1.3.x has now 3 available backends : Qt4/PySide, WebAgg (both interactive) and Agg (non interactive).

This version needed some new dependencies for MeeGo Harmattan which I've packaged : "python-pyparsing", "Tofrodos" (needed by pyparsing) and "python-tz". Also dependencies "python-pyside" (for Qt4/PySide default backend) and "python-tornado" (for WebAgg backend) are automatically installed.

MatPlotLib 1.3.1 Harmattan is based on Debian jessie version and MatPlotLib 1.3.1 source code, without Python 3 support, no debug package, adapted dependencies to MeeGo Harmattan, etc.

See 1st post por details about installing and using MatPlotLib 1.3.1.

Time to load MatPlotLib 1.3.1 on Nokia N9 :
- 0.7-0.9s via "from matplotlib import *" ;
- 2.1-2.3s (with 1.9.0) via "import pylab" or "from pylab import *".

Benchmarks of MatPlotLib examples (see posts #1 and #4) with NumPy 1.7.x on Nokia N9 :
simple_plot.py : 3.2s (1.0.0), 4.8s (1.2.0), 3.7s (1.3.1)
surface3d_demo.py : 12.1s (1.0.0), 10.9s (1.2.0), 5.2s (1.3.1)
convfield.py : 3.2s (1.0.0), 4.8s (1.2.0), 3.8s (1.3.1)
plotfx.py : 6.4s (1.0.0), 8.9s (1.2.0), 2.9s (1.3.1)
contourfxy.py : 8.3s (1.0.0), 10.9s (1.2.0), 8.9s (1.3.1)
densityfxy.py : 8.0s (1.0.0), 10.6s (1.2.0), 8.5s (1.3.1)
vectorfieldFxy.py : 6.5s (1.0.0), 8.6s (1.2.0), 6.7s (1.3.1)
surfacefxy.py : 22.8s (1.0.0), 19.0s (1.2.0), 13.4s (1.3.1)

The same using MatPlotLib 1.2.1 and 1.3.1 with NumPy 1.9.0 on Nokia N9 :
simple_plot.py : 3.4s (1.2.1), 3.3s (1.3.1)
surface3d_demo.py : 3.7s (1.2.1), 3.9s (1.3.1)
convfield.py : 3.5s (1.2.1), 3.5s (1.3.1)
plotfx.py : 2.6s (1.2.1), 2.6s (1.3.1)
contourfxy.py : 8.2s (1.2.1), 8.4s (1.3.1)
densityfxy.py : 7.9s (1.2.1), 8.1s (1.3.1)
vectorfieldFxy.py : 7.0s (1.2.1), 6.4s (1.3.1)
surfacefxy.py : 10.6s (1.2.1), 10.9s (1.3.1)

See post #32 for older MatPlotLib 1.2.x benchmarks.

Conclusion :
- NumPy 1.9.x is faster than older versions;
- MatPlotLib 1.3.x is faster than v1.2.x;
- so it is recommeded to use last versions of MatPlotLib (1.3.1) and NumPy (1.9.0) for best performance on MeeGo Harmattan.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.

Last edited by rcolistete; 2014-10-21 at 22:28.
 

The Following User Says Thank You to rcolistete For This Useful Post: