changed to plot both absorption and index data