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

Click For Summary
To scale the x-axis values in Gnuplot from a range of 10,000 to 100,000 to a simpler format of 10 to 100, users can apply a transformation in the Gnuplot script. Instead of manually dividing the values, the scaling can be achieved by modifying the fit function to include a multiplication factor of 1,000. This adjustment allows for the desired representation without altering the original data points. The solution emphasizes the importance of correctly applying transformations within Gnuplot commands to achieve the intended axis scaling effectively.
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)

screenshot.png


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?
 
Computer science news on Phys.org
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!
 
A new phenomenon is AI-generated news videos pretending to be by well-known professors Jeffery Sachs and John Mearsheimer. The amazing thing is that they both seem very tolerant of this. Youtube will block these if they request it but this has been going on for months and such blocks never seem to happen. The other surprise is that while they may be visually ugly or even grotesque the news analysis is quite good. If given the sound alone I don't believe I could tell it from the real...

Similar threads

  • · Replies 10 ·
Replies
10
Views
44K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K