You can directly take a FFT of the signal. https://wiki.gnuradio.org/index.php/FFT
Then display it in a QT GUI Vector Sink - In the Vector Sink you can adjust the X and Y axes.
https://wiki.gnuradio.org/index.php/QT_GUI_Vector_Sink Just an alternative - Hope this helps.