/[escript]/trunk/doc/examples/inversion/plot_ermapper.py
ViewVC logotype

Diff of /trunk/doc/examples/inversion/plot_ermapper.py

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

revision 4289 by jfenwick, Thu Mar 7 07:02:59 2013 UTC revision 4299 by caltinay, Mon Mar 11 00:40:09 2013 UTC
# Line 14  Line 14 
14    
15  """This example show how to display ER Mapper raster data with matplotlib"""  """This example show how to display ER Mapper raster data with matplotlib"""
16    
17    import matplotlib
18    # The following line is here to allow automated testing. Remove or comment if
19    # you would like to display the final plot in a window instead.
20    matplotlib.use('agg')
21  from matplotlib import pyplot as plt  from matplotlib import pyplot as plt
22  import numpy as np  import numpy as np
23  import sys  import sys
# Line 107  plt.axis('tight') Line 111  plt.axis('tight')
111  plt.title(FILENAME)  plt.title(FILENAME)
112  plt.colorbar()  plt.colorbar()
113    
114  # To display the plot, uncomment the following line  plt.show()
115  #plt.show()  plt.savefig("ermapper_plot.png")
116    

Legend:
Removed from v.4289  
changed lines
  Added in v.4299

  ViewVC Help
Powered by ViewVC 1.1.26