1
\begin{tikzpicture}
  \begin{axis}[
   title=Stress vs. Strain,
   xlabel={Strain $\Delta$ (\si{\milli\meter})},
   ylabel={Load $F$ (\si{\newton})},
   xmin=-0.30,
   ymin=0,
   %grid=major,
               ]
  \addplot+[smooth,mark=none]table[x=Strain1, y=Load, col sep=comma 
   {SpecimenA1};

\end{axis}
\end{tikzpicture}

In the csv file I have two columns: "Stress" and "Strain." Whenevever I try to quick build I get the error of "Package pgfplots Error: Could not read table file 'SpecimenA1' in 'search pat." What is wrong?

6
  • This example does not really help as it won't compile. Please make it a complete minimal working example (MWE) to show us the problem.
    – TeXnician
    Commented Oct 31, 2017 at 15:42
  • Where is the file located and what's theextension of the file?
    – percusse
    Commented Oct 31, 2017 at 15:44
  • I guess you simply missed to add the file extension of your file, i.e. write SpecimenA1.csv instead of just SpecimenA1. Commented Oct 31, 2017 at 15:44
  • I am new to Latex, as I only use it to write reports. It is inside of my folder that contains my lab report. The file is a .csv file
    – Griff
    Commented Oct 31, 2017 at 15:45
  • I receive even more errors when I add the file extension. \GenericError
    – Griff
    Commented Oct 31, 2017 at 15:48

0

Browse other questions tagged .