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

I want to change format of x or y number in green box of below graph .enter image description here

share|improve this question

closed as unclear what you're asking by Hans-Peter E. Kristiansen, egreg, Joseph Wright Oct 25 '14 at 16:13

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

This is covered in the manual quite extensively. At which point are you stuck? – percusse May 4 '12 at 7:55
In what way? There are lots of ways of altering the formatting, so we need to know what you mean (font, size, decimal places, ...). – Joseph Wright May 4 '12 at 7:55
I want change 1o^2 to 100 – sayros May 4 '12 at 7:57
possible duplicate of pgfplots ticklabel format logarithmic scale – Hans-Peter E. Kristiansen Oct 25 '14 at 15:47

If you intend to change the formatting of an axis with linear scale (i.e. "normal" numbers), you can proceed as in Joseph's answer, i.e. by modifying the keys with /pgf/number format/ prefix.

Log-axes however require the log ticks with fixed point key; it reconfigures pgfplots to produces fixed point representation for log axes:

\begin{axis}[log ticks with fixed point]

This style requires the most recent pgfplots stable version 1.5.1

share|improve this answer
See also tex.stackexchange.com/a/139084/38080 (linked for the next one searching...) – Rmano Feb 9 at 18:41

You can change the formatting for an axis using the every ... system. For example

      every x tick label/.append style  =
          /pgf/number format/.cd,
           precision = 0, 

should I think work here. This works by adding some basic pgf number formatting instructions to the end of the code which is used to print the tick labels.

share|improve this answer
this approach works well for non-logarithmic axes. Axes with log scale are treated with a different code, in this case, only the exponent is affected by number printing (since many people want an exponent even if it is a real number). – Christian Feuersänger May 4 '12 at 19:36
@Christian. Hmm, in that case my answer is wrong. Would you write an answer and let me know, and I'll delete this one. – Joseph Wright May 4 '12 at 19:39
oh, why - simply keep it. It is always good to have a reference for these things. – Christian Feuersänger May 4 '12 at 19:40

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