1

I am having troubles using csv files to create plot similar to png file.

There are two csv files which includes results of two different models (Kobert, XLM-R).

I want to make plot in latex looks same as png file with above two csv files. I hope I can get help from you.

PNG examples

CSV file of KoBERT

CSV file XLM-R

3
  • Welcome to TSE. What did you try? Commented Jul 16, 2021 at 14:22
  • Is the formatting built into the csv, because the first thing you need is a plain text file, possibly comma de;limited. Commented Jul 16, 2021 at 21:36
  • @Choii, Is your question answered?
    – MS-SPO
    Commented Aug 13, 2021 at 17:53

1 Answer 1

2
\documentclass[margin=-2pt]{standalone}
\usepackage{pgfplots}

\begin{document}

\begin{tikzpicture}
\begin{axis}
\addplot table [x=step, y=value, col sep=comma] {data.csv};
\end{axis}
\end{tikzpicture}

\end{document}

Make sure that you have data.csv in your project.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .