TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 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.


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

Your Answer


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.