我有一个 .dat 文件,我想从中获取中值数据点来绘制我的图形。但是 y 轴出现了问题。这是我的代码。附件是数据文件。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}% optional T1 font encoding
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{pgfplots}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{subfigure}
\title{plots of images: Image completion }
\usepackage{natbib}
\usepackage{graphicx}
\begin{document}
\maketitle
\section{Introduction}
\begin{figure}[ht]
\resizebox{0.24\textwidth}{!}{\begin{tikzpicture}
\begin{semilogyaxis}[
ticklabel style = {font=\Large},
ytick={1,10,20,60},
ymax=60,
ymin=1,
xmin=10,
xmax=90,
xlabel=\large{Iterations},
ylabel=\large{RRE},
title={NeNMF perf. w.r.t. different ranks (i.e. r=5,10,50)}
]
\addplot[green,line width=2pt] table[x expr=\coordindex, y=Med_V_NeNMF, col sep=space]{Envelop_1000_5.dat};
\addplot[blue,line width=2pt] table[x expr=\coordindex,y=Med_ARPI_NeNMF, col sep=space]{Envelop_1000_5.dat};
\addplot[red,line width=2pt] table[x expr=\coordindex,y=Med_RPI_NeNMF, col sep=space]{Envelop_1000_5.dat};
\legend{{vanilla ($r = 5$)},{ARPI ($r = 5$)},{RPI ($r = 5$)}}
\end{semilogyaxis}
\end{tikzpicture}
} \hfill
\caption{NMF performance with respect to compression techniques.}
\end{figure}
\end{document}