\documentclass[tikz,border=4pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \definecolor{s1}{HTML}{3C5488} \definecolor{s2}{HTML}{00A087} \definecolor{s3}{HTML}{E64B35} \begin{document} \begin{tikzpicture} \begin{axis}[ width=8.6cm, height=6.0cm, xlabel={$2\theta$ (degree)}, ylabel={Intensity (a.u.)}, xmin=10, xmax=80, ymin=0, ymax=3.8, ytick=\empty, tick label style={font=\footnotesize}, label style={font=\small}, ] % Replace coordinates with \addplot table[x=two_theta, y expr=\thisrow{I}+offset] {xrd.dat}; \addplot[s1, thick, smooth] coordinates {(10,0.4)(23,0.4)(25.3,1.35)(27.5,0.4)(36,0.4)(37.8,0.8)(39.5,0.4)(46,0.4)(48,0.95)(50,0.4)(62.7,0.72)(80,0.4)}; \node[anchor=east, s1, font=\sffamily\scriptsize\bfseries] at (axis cs:78,0.68) {Pristine}; \addplot[s2, thick, smooth] coordinates {(10,1.5)(23,1.5)(25.5,2.45)(27.7,1.5)(36,1.5)(38.0,1.9)(39.7,1.5)(46,1.5)(48.2,2.05)(50.2,1.5)(62.9,1.82)(80,1.5)}; \node[anchor=east, s2, font=\sffamily\scriptsize\bfseries] at (axis cs:78,1.78) {Doped-5\%}; \addplot[s3, thick, smooth] coordinates {(10,2.6)(23,2.6)(25.1,3.55)(27.3,2.6)(36,2.6)(37.6,3.0)(39.3,2.6)(46,2.6)(47.8,3.15)(49.8,2.6)(62.5,2.92)(80,2.6)}; \node[anchor=east, s3, font=\sffamily\scriptsize\bfseries] at (axis cs:78,2.88) {Composite}; \end{axis} \end{tikzpicture} \end{document}