Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- import aplpy
- import numpy as np
- fig = aplpy.FITSFigure('test.fits')
- fig.show_grayscale()
- a=np.ndarray(shape=(2,2))
- a[0][0]=200
- a[0][1]=250
- a[1][0]=300
- a[1][1]=400
- fig.show_lines(a)
- plt.show()
- Traceback (most recent call last):
- File "draw.py", line 16, in <module>
- fig.show_lines(a)
- File "<string>", line 2, in show_lines
- File "/home/swapnil/anaconda/lib/python2.7/site-packages/aplpy/decorators.py", line 25, in _auto_refresh
- return f(*args, **kwargs)
- File "/home/swapnil/anaconda/lib/python2.7/site-packages/aplpy/aplpy.py", line 1275, in show_lines
- xp, yp = wcs_util.world2pix(self._wcs, line[0, :], line[1, :])
- IndexError: too many indices
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement