So i want to plot using PGFPlots but somehow i get bad locking plots. In Excel it looks like this:
If i try to make it with PGFPlots I get a super bad looking plot. What i want to have it the x axis simmilar to the plot in excel, but if i change the xtick or xticklabels i get errors.... Anyone got a suggestion ?
My Latexcode:
\begin{figure}
\centering
\begin{tikzpicture}
\pgfplotsset{
scale only axis,
}
\begin{axis}[
width=0.85\linewidth,
height=8cm,
xlabel=$A$,
ylabel=$B$,
]
\addplot[only marks, color=blue]
coordinates{
(2.5e-3,20.29)
(1.25e-3,21.46)
(6.3e-4,27.61)
(3.2e-4,42.23)
(1.5e-4,57.95)
(0.7e-4,68.51)
(4e-05,70.15)
};
\end{axis}
\end{tikzpicture}
\end{figure}


any idea to reduce the amount of xlabels manually ?
– Tobbbe Apr 01 '21 at 13:09xtick={0,0.0005,...,0.0025},andxticklabels={0,0.0005,0.001,0.0015,0.002,0.0025},in youraxisenvironment – Excelsior Apr 01 '21 at 13:12