带有大点的条形图

带有大点的条形图

我想绘制一个包含 128 个点的条形图,每组 2 个点,但垂直条相互重叠,并以正方形图表示,但我想要一个矩形图(其中在此处输入图片描述x 轴的长度大于 y 轴)。 最小工作环境:

\documentclass{article}
\usepackage{pgfplots}
\usepackage{tikz}
\usepackage{pgfplotstable}
\usepackage{graphicx}

\begin{document}
\pgfplotstableread[col sep = comma]{e2e_all.csv}\abletoe

 \begin{figure*}
 \centering
  %+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 \begin{tikzpicture}
 \begin{axis}[x tick label style={/pgf/number format/1000 sep=},ylabel=Year,xtick={0,8,16,24,32,40,48,56,64}, enlarge x limits=true,legend style={at={(0.5,-0.1)}, anchor=north,legend columns=-1}, ybar interval=0.7]
 \addplot table [x=Core, y=v1, col sep=comma] {\abletoe} ;
 \addplot table [x=Core, y=carclip, col sep=comma] {\abletoe} ;
  \legend{Gaussian,Non-gaussian}
  \end{axis}
  \end{tikzpicture}
  %+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 \end{tabular}}
 \caption{xyz}
 \end{figure*}
 \end{document}

相关内容