Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there a simple way to control the width\thickness of the strokes in the ycomb/xcomb commands proposed in pgfplots? Or should I dive into the source code to clarify?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

The line width is a property of every single plot. So you can just add a corresponding option. Here is an example derived from the pgfplots manual.

\documentclass{minimal}
\usepackage{pgfplots}

\begin{document}
  \begin{tikzpicture}
    \begin{axis}
      \addplot+[xcomb,line width=5pt] coordinates {%
        (4,0) (1,1) (2,2) (5,3) (6,4) (1,5)
      };
    \end{axis}
  \end{tikzpicture}
\end{document}
share|improve this answer
    
Thanks. Too bad I missed that. –  pluton Jul 22 '11 at 18:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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