''' # from mpl_toolkits.mplot3d import Axes3D from astropy.io import fits from dazer_methods import Dazer from mpl_toolkits.mplot3d import Axes3D from matplotlib import cbook from matplotlib import cm from matplotlib.colors import LightSource import matplotlib.pyplot as plt import numpy as np #Create class object dz = Dazer() #Plot configuration dz.frames_colors = {'Blue arm': 'bone', 'Red arm': 'gist_heat'} #Load the data Spectra_address = '/home/vital/Astrodata/WHT_2011_11/Night1/objects/11_Blue_cr_f_t_w.fits' #Open the image with fits.open(Spectra_address) as hdu_list: image_data = hdu_list[0].data xmin, xmax, ymin, ymax = 90, 120, 400, 800 y = np.arange(ymin, ymax) x = np.arange(xmin, xmax) y, x = np.meshgrid(y, x) image_section = np.rot90(image_data[ymin:ymax, xmin:xmax], 1)