I have the following code
Code: Select all
\documentclass[12pt]{minimal}
\usepackage{pgfplots}
\usepackage[version=3]{mhchem}
\begin{document}
\begin{tikzpicture}
\draw (9.3,7.5) node {\textbf{CO}};
\begin{semilogyaxis}[
legend pos = south east,
width=12cm,
height=10cm,
xlabel= Y (cm),
ylabel= \ce{CO},
xlabel style = {yshift=15pt},
ylabel style = {yshift=-25pt},
xmin = -0.5,
xmax = 0.8,
ymin = 1e-5,
ymax = 1,
xtick= {-0.4,0.6},
ytick= {1e-4,1},
enlarge x limits = false,
table/x expr=(\thisrow{y}-0.025-0.006)*100,
table/y=cCO]
\addplot [only marks,mark=square*] table [x expr=\thisrow{Y}] {data.dat};
\legend {experiment}
\end{semilogyaxis}
\end{tikzpicture}
\end{document}
Code: Select all
Y cCO
0.2605 2.3851e-4
0.2108 6.2624e-4
0.1587 6.0283e-3
0.108 0.0341
0.0574 0.0413
-0.0429 0.0213
-0.0935 0.0109
-0.1417 8.5054e-3
Thanks