How to format x axis to a smaller scale in Gnuplot?

2 replies · 3K views · last reply
bolzano95
Messages
89
Reaction score
7
TL;DR
Scaling x-axis
So here is what I'm trying to do. The values on x-axis are from 10000, 20000, 30000, ... 100000. I'm trying to write it like this: 10, 20, 30, 40, ... 100 (only x axis)

Gnuplot line graph with two overlapping sets of data points forming two peaks near x = 60000 and x = 68000, y from 0 to 0.25, x axis labelled 10000 to 100000.


But how do I do this? I've tried those two examples How to scale the axis in Gnuplot, How to scale the axes in Gnuplot but it doesn't work. I could simply divide everything by 1000, but I'm trying to do this with gnuplot command.

Is there some way to do this in Gnuplot?
 
I checked the link you suggested, but unfortunately the fit function dissapears. So I checked and checked what's wrong and someone suggested I should multiply the fit function by factor 1000. And it worked!