Please, how to remove the 15 zeros after the comma and keep only one digit in the plot below?
This is the code for example
Table[{n, n}, {n, 10^-2, 1.4, 2. 10^-1}]
(* {{0.01, 0.01}, {0.21, 0.21}, {0.41, 0.41}, {0.6100000000000001,0.6100000000000001}, {0.81, 0.81}, {1.01, 1.01}, {1.21, 1.21}} *)
ListPlot[Table[{n,n}, {n,10^-2,1.4,0.05}], Joined -> True, Frame -> True,PlotRange ->{{0.,1.4},{0.,1.4}},GridLines ->Automatic]
My MAT version
$Version
(* 13.0.0 for Microsoft Windows (64-bit) (December 3, 2021)*)
PrintPrecision
to a large value by chance? (Like this: i.stack.imgur.com/GlTQ3.png) Try something likeStyle[ListPlot[...], PrintPrecision -> 6]
. If you're not sure what yourPrintPrecision
is set to, evaluateOptions[$FrontEnd, PrintPrecision]
. $\endgroup$SetOptions[$FrontEnd, PrintPrecision -> 10]
to change your global option setting forPrintPrecision
, then re-evaluate yourListPlot
. (MichaelE2'sStyle
suggestion should work by itself too, though.) $\endgroup$