matplotlib

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
Dernière révisionLes deux révisions suivantes
matplotlib [2008/11/03 14:09] – créée gerardmatplotlib [2008/11/07 09:20] gerard
Ligne 2: Ligne 2:
  
   * [[http://blogs.sun.com/yongsun/entry/build_matplotlib_0_98_3]]   * [[http://blogs.sun.com/yongsun/entry/build_matplotlib_0_98_3]]
 +  * répertoire /local/apps/src/matplotlib-0.98.3
 +<code>
 +source /opt/jdsbld/bin/env.csh
 +setenv PYTHONPATH /local/apps/lib/python2.4/site-packages
 +
 +cp -rp setupext.py setupext.py-dist
 +cd src
 +cp -rp _backend_gdk.c _backend_gdk.c-dist
 +setenv CC $CXX
 +python setup.py build | & tee BUILD.LOG
 +python setup.py install --prefix=$HOME | & tee INSTALL.LOG
 +</code>
 +
 +===== Utilisation =====
 +Se connecter sur nemo, puis:
 +<code>
 +setenv PYTHONPATH /local/apps/lib/python2.4/site-packages
 +
 +python
 +Python 2.4.4 (#1, Jan  9 2007, 23:31:33) [C] on sunos5
 +Type "help", "copyright", "credits" or "license" for more information.
 +>>> import matplotlib.pyplot as plt
 +plt.plot([1,2,3])
 +plt.ylabel('some numbers')
 +plt.show()
 +</code>
  • matplotlib.txt
  • Dernière modification : 2017/08/25 09:56
  • de 127.0.0.1