Reply
Thread Tools
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#31
Updated the 1st post with easier installation instructions (using my Harmattan repository), and easier use of MatPlotLib with IPython 0.13.1 Notebook or Qt console.
__________________
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.
 

The Following 2 Users Say Thank You to rcolistete For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#32
(09/02/2013) MatPlotLib 1.2.0 is now released for MeeGo Harmattan, just 1 month after the upstream release (08/01/2013), with interactive graphical backend on Nokia N9/N950 and many new features.

MatPlotLib 1.2.0 Harmattan is based on Ubuntu 13.04 version and MatPlotLib 1.2.0 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.2.0.

Time to load MatPlotLib 1.2.0 on Nokia N9 :
- 0.7-0.9 s via "from matplotlib import *" ;
- 2.0-2.3 s (with NumPy 1.4.1 or 1.7.0) via "import pylab" or "from pylab import *".
Comparing with MatPlotLib 1.0.0 :
- 0.7-0.9 s via "from matplotlib import *" ;
- 1.5-1.7 s (with NumPy 1.4.1 or 1.7.0) via "import pylab" or "from pylab import *".

Benchmarks of MatPlotLib examples (see posts #1 and #4) with NumPy 1.4.1 (from Nokia repositories) on Nokia N9 :
simple_plot.py : 2.9s (1.0.0), 4.4s (1.2.0)
surface3d_demo.py : 10.0s (1.0.0), 9.7s (1.2.0)
convfield.py : 2.8s (1.0.0), 4.6s (1.2.0)
plotfx.py : 6.1s (1.0.0), 8.4s (1.2.0)
contourfxy.py : 7.4s (1.0.0), 10.2s (1.2.0)
densityfxy.py : 7.5s (1.0.0), 10.3s (1.2.0)
vectorfieldFxy.py : 5.8s (1.0.0), 8.2s (1.2.0)
surfacefxy.py : 19.7s (1.0.0), 16.6s (1.2.0)

The same, but using new NumPy 1.7.0 on Nokia N9 :
simple_plot.py : 3.2s (1.0.0), 4.8s (1.2.0)
surface3d_demo.py : 12.1s (1.0.0), 10.9s (1.2.0)
convfield.py : 3.2s (1.0.0), 4.8s (1.2.0)
plotfx.py : 6.4s (1.0.0), 8.9s (1.2.0)
contourfxy.py : 8.3s (1.0.0), 10.9s (1.2.0)
densityfxy.py : 8.0s (1.0.0), 10.6s (1.2.0)
vectorfieldFxy.py : 6.5s (1.0.0), 8.6s (1.2.0)
surfacefxy.py : 22.8s (1.0.0), 19.0s (1.2.0)

As we see above :
- MatPlotLib 1.2.0 is slower than v1.0.0, except for surface 3D plots;
- using NumPy 1.7.0 is slower than v1.4.1.
__________________
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; 2013-02-12 at 04:21. Reason: Source code description
 

The Following 5 Users Say Thank You to rcolistete For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#33
If anyone still wants old MatPlotLib 1.0.0 for some reason :

1) download from my Harmattan repository :
python-matplotlib-data_1.0.0-1_all.deb
python-matplotlib_1.0.0-1_armel.deb

2) install dependencies, as root in Terminal :
# apt-get install python-central python-support python-numpy python-dateutil python-gobject python-cairo

3) install MatPlotLib 1.0.0, again as root in Terminal, in the same directory where the files where downloaded :
# dpkg -i python-matplotlib-data_1.0.0-1_all.deb
# dpkg -i python-matplotlib_1.0.0-1_armel.deb

4) configure MatPlotLib 1.0.0, in Terminal as root :
# mkdir /usr/lib/python2.6/dist-packages/matplotlib/mpl-data
As user :
$ cd ~
$ rm -rf .matplotlib
$ mkdir .matplotlib
$ echo 'datapath : /usr/share/matplotlib/mpl-data' > .matplotlib/matplotlibrc
MatPlotLib 1.0.0 has no interactive graphical backend, so "show()" doesn't work, instead use "savefig" command to save plots to files.

MatPlotLib 1.2.0 is a lot simpler to install (see 1st post) and has more features on MeeGo Harmattan. See the benchmark of MatPlotLib 1.0.0 x 1.2.0 in the previous post.
__________________
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; 2013-02-11 at 16:44. Reason: Typo fixed
 

The Following 3 Users Say Thank You to rcolistete For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#34
NumPy 1.7.0 is released today (11/02/2013), just one day after the mainstream release.

MatPlotLib is compatible with both NumPy 1.4.1 (from Nokia repositories) and v1.7.0 (from my Harmattan repository). See the benchmarks in post #32 above.
__________________
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; 2013-02-11 at 18:12.
 

The Following 2 Users Say Thank You to rcolistete For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#35
MatPlotLib 1.2.0 Harmattan1 from 09/02/2013 had an error (dependency of NumPy limited to v1.5) which was fixed late yesterday (10/02/2013). So who installed MatPlotLib 1.2.0 in 09-10/02/2013, please reinstall it, as root in Terminal :
# apt-get install --reinstall python-matplotlib
__________________
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.
 

The Following 2 Users Say Thank You to rcolistete For This Useful Post:
Posts: 117 | Thanked: 59 times | Joined on Nov 2012
#36
This is an awesome program !!!
Thank you developer
 
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#37
(12/02/2013) MatPlotLib 1.2.0-2 Harmattan is released, now the interactive Qt4/PySide default backend opens in full screen, so Nokia N9/N950 screen is better used.

See the 1st post to install/update, i.e., "apt-get update" then "apt-get install python-matplotlib" as root in Terminal.

Before the new release : Ahahhh, I've figured out how to show the Qt4/PySide backend in full screen Just one new line of code, PyQt4/PySide rocks ! And it deserves a new version : Matplotlib 1.2.0 Harmattan2.

See the new IPython 0.13.1-3 which fixes the bug which prevented dialog boxes to work on Qt4 backend, so save button, vkb on text fields, etc, don't work .

With MatPlotLib 1.2.0-2 and IPython 0.13.1-3, your Nokia N9/N950 will show Qt4/PySide backend in full screen and with working dialogs boxes.
__________________
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; 2013-02-12 at 17:10. Reason: Cited IPython 0.13.1-3
 

The Following 2 Users Say Thank You to rcolistete For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#38
(06/06/2013) MatPlotLib 1.2.1 is released for MeeGo Harmattan.

MatPlotLib 1.2.1 (26/03/2013) is an upstream bug fix release for v1.2.0 (08/01/2013).

It needs NumPy >= 1.7.x, even if it asks for NumPy 1.4.1. See next version for this dependency fix.

MatPlotLib 1.2.1 Harmattan is based on Ubuntu 13.04 version and MatPlotLib 1.2.1 source code, without Python 3 support, no debug package, adapted dependencies to MeeGo Harmattan, etc.

See the 1st post to install/update, i.e., "apt-get update" then "apt-get install python-matplotlib" as root in Terminal.
__________________
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; 2013-06-15 at 23:30. Reason: Dependency on NumPy 1.7
 

The Following User Says Thank You to rcolistete For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#39
(15/06/2013) MatPlotLib 1.2.1-2 Harmattan released, just to force NumPy 1.7.x as dependency.

For some reason, MatPlotLib 1.2.1 needs NumPy 1.7.x to compile and also to run, while MatPlotLib 1.2.0 only needed NumPy 1.4.0.
__________________
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.
 

The Following User Says Thank You to rcolistete For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#40
Thanks, irulestar. There is a depency, "python-dateutil", needed by MatPlotLib 1.2.1 but not listed. Until I release a new MatPlotLib version (1.3.1 or 1.4.0) in the following days, a workaround is to install "python-dateutil" in Terminal (with developer mode on) :
$ devel-su
then type the root password (default is 'rootme'), then
# apt-get install python-dateutil
__________________
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:33.