for the plotted curve, there is the need of the sinusoidal grating profile on the plot. For this purpose decoration is used. But the result is not satisfactory because i could not manage to get rid of the tail and expand/change the distance between the crests and troughs d.
Code: Select all
\documentclass{standalone}
\usepackage[bitstream-charter]{mathdesign} %for a much better readable font
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{compat=newest}
\usetikzlibrary{positioning}
\usetikzlibrary{%
decorations.pathreplacing,%
decorations.pathmorphing%
}
\begin{document}
\begin{tikzpicture}
\begin{axis} [
xlabel=$\lambda/h$, %$\lambda $ \lbrack $ nm $\rbrack
xtick={1,2,...,11},
ylabel=Efficiency,
ymax=1,
ymin=0,
mark=none,
legend style={
legend pos=north east,
font=\tiny,
draw=none
} % place the legend box in the right place at ={(0.85, 0.65)}
]
\pgfplotstableread{uni-holographic-eff.txt}
\teff %effs=efficiencies
\addplot [color = blue, mark=none, smooth, very thick] table[y=one] from \teff;
\addlegendentry{Universal Efficiency Curve of Holographic Grating};
\draw[decorate,decoration={coil,aspect=0,amplitude=10}] (axis cs:2,0.7) -- (axis cs:3.5,0.7);
\end{axis}
\end{tikzpicture}
\end{document}
Thanks in advance
-Fawad