I'm using the documentclass memoir and I want to make a plot from a file.dat of two rows, nothing special. But I keep getting that pgfplots could not open the file. The point is that if I make a new document (article) the plot is generated without problem.

This is the code that works with article but not with memoir:

\begin{axis} []
\addplot[] file{pdf.dat};

Can somebody explain me what is happening?

  • 1
    Could you please provide a complete minimal working example? – SLx64 Jul 25 '14 at 5:15
  • It says pdf.dat but you mentioned file.dat. A typo maybe? – percusse Jul 25 '14 at 8:10

I tried this MWE (that you have not provided) and it seems work fine:

% !TEX program = xelatex
% !TEX encoding = utf8

0 1
1 2




\addplot file{pdf.dat};


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.