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

Click For Summary
SUMMARY

This discussion focuses on formatting the x-axis in Gnuplot to display values in a smaller scale. Users sought a method to convert x-axis values from 10000, 20000, ..., 100000 to 10, 20, ..., 100 without manually dividing the data. The solution involves using a Gnuplot command to scale the x values by a factor of 1/1000 directly within the script. Additionally, users found that multiplying the fit function by 1000 resolved issues with disappearing fit functions.

PREREQUISITES
  • Familiarity with Gnuplot scripting
  • Understanding of axis scaling concepts
  • Basic knowledge of data visualization techniques
  • Experience with fitting functions in Gnuplot
NEXT STEPS
  • Research Gnuplot axis scaling commands
  • Learn how to implement Gnuplot fit functions effectively
  • Explore Gnuplot's formatting options for axes
  • Investigate advanced data visualization techniques in Gnuplot
USEFUL FOR

This discussion is beneficial for data analysts, scientists, and engineers who utilize Gnuplot for data visualization and require precise control over axis formatting.

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!
 

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
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K