I have a data set for which I make a 2D contourf plot. I have two x-axis which i would like to use at the same time (Energy and Wavelength).
The code producing the two above plots are:
figurecontourf(flipud(y(1).energy), degrees5, log10(conx_spectrum), 500, 'edgecolor', 'none')colormap(jet)title('Full excitation laser dependence')xlim([1.1515 3.52759]);xlabel('Energy [eV]')ylabel(['Angle of polariser [' char(176) ']'])
figurecontourf(flipud(y(1).wavelength), degrees5, log10(conx_spectrum), 500, 'edgecolor', 'none')colormap(jet)title('Full excitation laser dependence')xlim([351.47 1076.72]);xlabel('Wavelength [nm]')ylabel(['Angle of polariser [' char(176) ']'])
Is there a way, where i can have the Energy axis at the bottom, and Wavelength axis at the top?
Of course the wavelength axis at the top would have to have the same ticks as the energy, therefore being strectched.
Thank you.
Best Answer