我制作了带有的条形图,[draw=none]
但图例中的条形图周围有黑色描边。为什么样式没有保留?我该如何删除图例条形图的黑色描边?
\addplot[draw=none, fill=green] table[x=p, y=dmsqr] {gfx/my_data.dat};
梅威瑟:
\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xbar]
\addplot [draw=none, fill=blue] coordinates {(10,5) (15,10) (5,15) (24,20) (30,25)};
\addlegendentry{Blue}
\addplot [draw=none, fill=red] coordinates {(3,5) (5,10) (15,15) (20,20) (35,25)};
\addlegendentry{Red}
\end{axis}
\end{tikzpicture}
\end{document}