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

Can I specify the space between the label and the parantheses when using x unit in pgfplots? In my example image, I want less space (\,) between the E and the [eV].

enter image description here

share|improve this question
up vote 3 down vote accepted

The units library is not customizable to that extend. But you can simulate the smaller spacing.

The easiest way is to alter the key unit marking pre which is used to typeset the left brace/whatever that is needed to denote a unit. Like this:

  \begin{axis}[unit marking pre={\!\!\left[}]

This will create two negative thin white spaces and will be close to the label.

(i don't have access to a TeX here, but will supply and example later.)

share|improve this answer
Thanks. It works but is a little sloppy... – DaPhil Feb 6 '13 at 14:34
yeah, but for now it is the only option... – zeroth Feb 6 '13 at 14:36

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.