Skip to main content
clarifying the title that this question in about the "figure-precision" (e.g. not the "calculation-precision". also, I added useful information from the answer's comment
Source Link

gnuplot precisionfigure-precision

I want to make a scatterplot with Gnuplot of these data (1st column as x-coordinates):

2015.493379 5 
2015.505479 5 
2015.513699 25 
2015.530137 25 
2015.532877 20 
2015.543836 5 
2015.552055 5 
2015.554795 10 
2015.563014 15 
2015.565753 15 
2015.582192 10

I'm using this command:

plot "file.txt" u 1:2

The problem is the x-axis precision: when I hover over my points between 2015.53 and 2015.54, the x-value displayed is 2015.53 for both points, instead of 2015.530137 and 2015.532877. gnuplot truncates the first column numbers at the first two decimals (2015.49, 2015.50, etc). I tried to change the x format (format x %.6f for ex) but it does not change the precision: x-tics just become 2015.490000, etc instead of 2015.49, whereas I want 2015.493379, etc, and the mouse pointer does not give extra information (in the bottom-left corner, the coordinates of the point pointed by the mouse have the same precision).

Do you know how to tell gnuplot to take the entire number into account ?

gnuplot precision

I want to make a scatterplot with Gnuplot of these data (1st column as x-coordinates):

2015.493379 5 
2015.505479 5 
2015.513699 25 
2015.530137 25 
2015.532877 20 
2015.543836 5 
2015.552055 5 
2015.554795 10 
2015.563014 15 
2015.565753 15 
2015.582192 10

I'm using this command:

plot "file.txt" u 1:2

The problem is the x-axis precision: gnuplot truncates the first column numbers at the first two decimals (2015.49, 2015.50, etc). I tried to change the x format (format x %.6f for ex) but it does not change the precision: x-tics just become 2015.490000, etc instead of 2015.49, whereas I want 2015.493379, etc, and the mouse pointer does not give extra information (in the bottom-left corner, the coordinates of the point pointed by the mouse have the same precision).

Do you know how to tell gnuplot to take the entire number into account ?

gnuplot figure-precision

I want to make a scatterplot with Gnuplot of these data (1st column as x-coordinates):

2015.493379 5 
2015.505479 5 
2015.513699 25 
2015.530137 25 
2015.532877 20 
2015.543836 5 
2015.552055 5 
2015.554795 10 
2015.563014 15 
2015.565753 15 
2015.582192 10

I'm using this command:

plot "file.txt" u 1:2

The problem is the x-axis precision: when I hover over my points between 2015.53 and 2015.54, the x-value displayed is 2015.53 for both points, instead of 2015.530137 and 2015.532877. gnuplot truncates the first column numbers at the first two decimals (2015.49, 2015.50, etc). I tried to change the x format (format x %.6f for ex) but it does not change the precision: x-tics just become 2015.490000, etc instead of 2015.49, whereas I want 2015.493379, etc, and the mouse pointer does not give extra information (in the bottom-left corner, the coordinates of the point pointed by the mouse have the same precision).

Do you know how to tell gnuplot to take the entire number into account ?

added 2 characters in body
Source Link
JoVe
  • 145
  • 1
  • 2
  • 9

I want to make a scatterplot with Gnuplot of these data (1st column as x-coordinates):

2015.493379 5 
2015.505479 5 
2015.513699 25 
2015.530137 25 
2015.532877 20 
2015.543836 5 
2015.552055 5 
2015.554795 10 
2015.563014 15 
2015.565753 15 
2015.582192 10

I'm using this command:

plot "file.txt" u 1:2

The problem is the x-axis precision: gnuplot truncates the first column numbers at the first two decimals (2015.49, 2015.50, etc). I tried to change dethe x-tics format (%10format x %.6f for ex) but it does not change the precision: x-tics just become 2015.490000, etc instead of 2015.49, whereas I want 2015.493379, etc, and the mouse pointer does not give extra information (in the bottom-left corner, the coordinates of the point pointed by the mouse have the same precision).

Do you know how to tell gnuplot to take the entire number into account ?

I want to make a scatterplot with Gnuplot of these data (1st column as x-coordinates):

2015.493379 5 
2015.505479 5 
2015.513699 25 
2015.530137 25 
2015.532877 20 
2015.543836 5 
2015.552055 5 
2015.554795 10 
2015.563014 15 
2015.565753 15 
2015.582192 10

I'm using this command:

plot "file.txt" u 1:2

The problem is the x-axis precision: gnuplot truncates the first column numbers at the first two decimals (2015.49, 2015.50, etc). I tried to change de x-tics format (%10.6f for ex) but it does not change the precision: x-tics just become 2015.490000, etc instead of 2015.49, whereas I want 2015.493379, etc, and the mouse pointer does not give extra information (in the bottom-left corner, the coordinates of the point pointed by the mouse have the same precision).

Do you know how to tell gnuplot to take the entire number into account ?

I want to make a scatterplot with Gnuplot of these data (1st column as x-coordinates):

2015.493379 5 
2015.505479 5 
2015.513699 25 
2015.530137 25 
2015.532877 20 
2015.543836 5 
2015.552055 5 
2015.554795 10 
2015.563014 15 
2015.565753 15 
2015.582192 10

I'm using this command:

plot "file.txt" u 1:2

The problem is the x-axis precision: gnuplot truncates the first column numbers at the first two decimals (2015.49, 2015.50, etc). I tried to change the x format (format x %.6f for ex) but it does not change the precision: x-tics just become 2015.490000, etc instead of 2015.49, whereas I want 2015.493379, etc, and the mouse pointer does not give extra information (in the bottom-left corner, the coordinates of the point pointed by the mouse have the same precision).

Do you know how to tell gnuplot to take the entire number into account ?

Source Link
JoVe
  • 145
  • 1
  • 2
  • 9

gnuplot precision

I want to make a scatterplot with Gnuplot of these data (1st column as x-coordinates):

2015.493379 5 
2015.505479 5 
2015.513699 25 
2015.530137 25 
2015.532877 20 
2015.543836 5 
2015.552055 5 
2015.554795 10 
2015.563014 15 
2015.565753 15 
2015.582192 10

I'm using this command:

plot "file.txt" u 1:2

The problem is the x-axis precision: gnuplot truncates the first column numbers at the first two decimals (2015.49, 2015.50, etc). I tried to change de x-tics format (%10.6f for ex) but it does not change the precision: x-tics just become 2015.490000, etc instead of 2015.49, whereas I want 2015.493379, etc, and the mouse pointer does not give extra information (in the bottom-left corner, the coordinates of the point pointed by the mouse have the same precision).

Do you know how to tell gnuplot to take the entire number into account ?