I will put you in context: I need to compare two graphs between a function called second derivative “xB” and a list called “gx” (this is an imported list). Individually everything is fine (I mean that the graphs of each one are fine) but when I want to draw these two lists with the command and ListLinePlot [{gx, ax}] the program shows me the following error:
ax is a graphic object (a plot) and gx is data. You can construct the data for ax by using
ax = Table[{t, xB''[t]/.s },{t,0,5,0.001}]
I chose 0.001 spacing but you can change that. Also note your gx data runs from 0 to 5000 so you will need to divide the first element by 1000 if you want to plot them on the same axis. Alternatively make ax times in miliseconds: