Do you see the point (0.78951,1.38506)
is slightly below the previous one, while it should be above?
\documentclass{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb,amsfonts,systeme} % Typical maths resource packages
\usepackage{color} % For creating coloured text and background
\usepackage{array}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{arrows.meta}
\usepackage{siunitx}
\usepackage{pgfplots}
\usepackage{filecontents}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
grid, grid style=dashed,
xticklabel style={rotate=90},
ymin=1.33,ymax=1.39,
extra y ticks={1.33,1.35,1.37}, % <---
xmax=1,xmin=0,
extra x ticks={0}, % <---
xtick={0,0.20594,0.38019,0.62664,0.78951,1},
minor tick num=1,
axis lines = middle,
set layers, % <---
%axis on top, % <---
xlabel=$x_1$,ylabel=$n_D$,
x label style={at={(1,0)},right},
y label style={at={(0,1)},above},
x tick label style={/pgf/number format/.cd,
fixed relative,
/pgf/number format/precision=5
},
style={thick}
]
\addplot+[color=red,mark=*,mark options={draw=red,fill=green},thick,smooth]
coordinates {
(0.00000, 1.33300)(0.20594,1.37003)(0.38019,1.37944)(0.62664,1.38502)(0.78951,1.38506)(1.00000,1.38511)
};
\end{axis}
\end{tikzpicture}
\end{document}
Is it just me, or is it really like that? In this case, do you have any suggestions?
Thank you in advance
smooth
and see what happens?