I've got a question with tikzpicture in LaTeX. Data of Tikzpicture are in a external file. The y-axis scale is like: 100,000 - 150,000... (thousands). I need to put the scale of this axis like 100 - 150 - 200..., and put "K_unit" on the axis label.

I've tried so many options, but nothing works. The last approximation that I've followed was to use the library units from pgfplots, as in: this page. It works, but shows "[unit]" in the axis label. Two questions:

1) Is it possible to remove the unit text, or customize axis label with the previous approximation?

2) Is there another option "to reduce the scale of my data"?

  • Hi and welcome to TeX.SX! Its not quite clear what your question is, so can you please post a minimum working example with some sample data, starting at \documentclass{...} and ending at \end{document}? Also, you may have noticed that I edited your post - we prefer not to say thanks or sign our names here. No one will think you're rude, and your name appears in the bottom right of all your posts anyways. Just trying to help focus the question on what you need :-) – darthbith Jun 17 '14 at 11:32
  • 1
    Is the scaled ticks option on page 286 of the pgfplots 1.10 manual what you're looking for? – darthbith Jun 17 '14 at 11:33

To reduce the x scale you could use the code key 'x filter', such as the example on page 329 in pgfplots_1.10:

\begin{axis}[x filter/.code=
\addplot coordinates {

Then you could insert the kilo-unit in your xlabel: xlabel={Quantity~[k-unit]} to make it clear for the reader that you did the manipulation. This example is for the x-scale, and the same holds for y-scale.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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