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.

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
add comment

1 Answer

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{tikzpicture}
  \begin{axis}[unit marking pre={\!\!\left[}]
    ... 
  \end{axis}
\end{tikzpicture}

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
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.