def plot_ccf(self, name, T, x_range=None):
# Load the ccf from the HDF5 file.
logging.debug('Plotting ccf name {}'.format(name))
observation = self.inst_date
i = observation.find('/')
instrument = observation[:i]
vel, corr = self._ccf_interface.load_ccf(instrument, name)
# Now, plot
p = figure(
title='{} K'.format(T),
x_range=x_range,
plot_width=600, plot_height=400,
title_text_font_size="10pt",
tools="pan,wheel_zoom,box_select,reset,save"
)
p.line(vel, corr, line_width=2)
p.xaxis[0].axis_label = 'Velocity (km/s)'
p.yaxis[0].axis_label = 'CCF Power'
return p
评论列表
文章目录