Skip to content
Snippets Groups Projects
Commit 54c78b28 authored by David Rafferty's avatar David Rafferty
Browse files

Add support for astropy version of wcsaxes

parent cebf7e6f
Branches
No related tags found
No related merge requests found
...@@ -85,6 +85,10 @@ def plot(LSM, fileName=None, labelBy=None): ...@@ -85,6 +85,10 @@ def plot(LSM, fileName=None, labelBy=None):
raise ImportError('PyPlot could not be imported. Plotting is not ' raise ImportError('PyPlot could not be imported. Plotting is not '
'available: {0}'.format(e.message)) 'available: {0}'.format(e.message))
try: try:
try:
from astropy.visualization.wcsaxes import WCSAxes
hasWCSaxes = True
except:
from wcsaxes import WCSAxes from wcsaxes import WCSAxes
hasWCSaxes = True hasWCSaxes = True
except: except:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment