The x-axis should be frequency. You need to know the sampling rate fs
(is it 2 ?) of data
. Then the frequency range will be (0:63)/64*fs
Actually you can get the frequency output in the spectrogram function:
[B,F,T]=spectrogram(data,64,60,256,2); % if fs = 2 in your case
F
is the frequency range.