I have an array (grmf) of 2000 values, corresponding to a measurement scanning 7990 - 8010 MHz. The x values are stored from 0 to 1999.
import numpy as np
from matplotlib import pyplot as plt
xaxis = np.arange(2000)
grmf = 3 * xaxis #let's just use this as dummy data
plt.plot(xaxis, grmf, label="measurement")
plt.show()
I want the x axis to simply display the values 7990 (corresponding to 0) and 8010 (corresponding to 1999) so that it's easier to identify where a peak is roughly located by first glance e.g.
Since there are other functions in the plot and xaxis is used in more ways than just this plot I can neither change the axis nor the array xaxis but just want to change the graphical appearance. From what I've found it seems like put.xticks seems to be the way to go, but it hasn't really worked out yet the way I want it.