/[escript]/trunk/doc/examples/usersguide/poisson_matplotlib.py
ViewVC logotype

Diff of /trunk/doc/examples/usersguide/poisson_matplotlib.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4086 by jfenwick, Fri Sep 21 02:47:54 2012 UTC revision 4087 by caltinay, Thu Nov 22 22:28:01 2012 UTC
# Line 20  __license__="""Licensed under the Open S Line 20  __license__="""Licensed under the Open S
20  http://www.opensource.org/licenses/osl-3.0.php"""  http://www.opensource.org/licenses/osl-3.0.php"""
21  __url__="https://launchpad.net/escript-finley"  __url__="https://launchpad.net/escript-finley"
22    
 from esys.escript import *  
 from esys.escript.linearPDEs import Poisson  
 from esys.finley import Rectangle  
 import numpy  
23  import matplotlib  import matplotlib
   
24  matplotlib.use('agg')   #For interactive use, you can comment out this line  matplotlib.use('agg')   #For interactive use, you can comment out this line
25  #It's just here to make testing easier  #It's just here to make testing easier
26    
27    import numpy
28  import pylab  import pylab
29    
30    from esys.escript import *
31    from esys.escript.linearPDEs import Poisson
32    from esys.finley import Rectangle
33    
34  #Testing whether we have a late enough version of matplotlib  #Testing whether we have a late enough version of matplotlib
35  try:  try:
36      matplotlib.mlab.griddata      matplotlib.mlab.griddata

Legend:
Removed from v.4086  
changed lines
  Added in v.4087

  ViewVC Help
Powered by ViewVC 1.1.26