I am trying to plot a tikz error (standard deviation) graph but i keep getting a parsing error:
! Package PGF Math Error: Could not parse input 'D1-1k' as a floating point number, sorry. The unreadable part was near 'D1-1k'..
I think it is expecting a numeric value in the first column but i need it to be a text. My goal is to have a 12 bars standard deviation error plot with text labels on the x-axis to be read from the first column of the data file.The data file contents are:
File,Mean,STDevD1-1k,0.58,0.30D1-10k,0.59,0.30D1-100k,0.58,0.30D1-1M,0.58,0.30D1-10M,0.59,0.30D1-100M,0.61,0.28D2-1k,8.40,4.72D2-10k,8.16,4.75D2-100k,8.12,4.67D2-1M,8.22,4.75D2-10M,8.10,4.73D2-100M,9.13,4.94
and my code is:
\documentclass[sigconf]{acmart}\usepackage[utf8]{inputenc}\usepackage{pdfpages}\usepackage{pgfplotstable}\usepackage{pgfplots}\pgfplotsset{compat=1.16}\begin{document}\begin{tikzpicture} \begin{axis} \addplot [only marks, error bars/.cd, y dir=both, y explicit] table [col sep=comma, x=File, y=Mean, y error=STDev]{Data/detavg.csv}; \end{axis}\end{tikzpicture}\end{document}
Thank you.