Good things appeared to happen
Then I opened Spyder using Python(x,y) to try Keith's second code block and it didn't like it. Anyone care to tell me what has happened? I use Windows 7.
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> import sunpy
>>> import matplotlib.pyplot as plt
>>> aia = sunpy.make_map(sunpy.AIA_171_IMAGE)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "c:\sunpy\sunpy\map\__init__.py", line 58, in make_map
File "c:\sunpy\sunpy\map\basemap.py", line 238, in read
header, data = cls.parse_file(filepath)
File "c:\sunpy\sunpy\map\basemap.py", line 211, in parse_file
from sunpy.io import read_file
File "c:\sunpy\sunpy\io\__init__.py", line 3, in <module>
from sunpy.io import fits, jp2
File "c:\sunpy\sunpy\io\fits.py", line 27, in <module>
File "C:\Python27\lib\site-packages\pyfits-2.4.0-py2.7-win32.egg\pyfits\__init__.py", line 17, in <module>
from core import *
File "C:\Python27\lib\site-packages\pyfits-2.4.0-py2.7-win32.egg\pyfits\core.py", line 34, in <module>
File "C:\Python27\lib\gzip.py", line 36, in <module>
AttributeError: 'module' object has no attribute 'BufferedIOBase'
On 1/20/2012 9:21 AM, Keith Hughitt wrote:
The plot() and show() methods of SunPy Map objects
currently include axes labels, a title and color bar.
Further, saving such a plot will result in an image with a
different number of pixels than the image that was used to make
the Map, e.g.:
Plotting an image in Matplotlib and saving it at
it's natural scale without any extra labels or padding turns
out to be a bit akward: