Me need to get the following converting when PGFPlots will render the table:

0.01 -> 0.1 * 10^{-1}

0.121 -> 0.121.

1.843 -> 1.843

10.1 -> 1.01 * 10

124 -> 1.24 * 10^{2}

I know about a format option sci, but it doesn't help, because it convert, for example, 0.121 to 1.121 * 10^{-1}.

For example:

enter image description here

Without sci option: enter image description here

I want to get it:

enter image description here

But in each variants, I get a inappropriate result.

  • 3
    What's the rule? Seems pretty arbitrary and nonstandard to me. – percusse Apr 2 '15 at 11:27
  • I has updated question. – Queue Overflow Apr 2 '15 at 12:29
  • 2
    @QueueOverflow What if I write 10.2? What decides whether the result is fixed or sci? IF they are your own then you have to code yourself because these are defined in standards. – percusse Apr 2 '15 at 15:09
  • 2
    I don't know how else i should put it. You don't define any style. You give 5 numbers and say this should be it. Do you only need these five numbers? Those styles evaluate the number according to some rules and then decide how to typeset them. You are just giving the numbers to guess the rule behind it. Check std in the manual of pgfplotstable manual for example. Otherwise noone can answer your questions. – percusse Apr 2 '15 at 15:38
  • 1
    @QueueOverflow There must be something consistent among all the cases to be able to define a consistent style. As it seems right now, the difference between how, e.g. 0.01->0.1E-1, 0.123->0.123 is not clear. Why does one get the power of ten and the other doesn't? – darthbith Apr 2 '15 at 15:52

There is possibility to set max and min value of exponent, that determine, would number display in a fixed format or a science format:

std = <lower e>:<upper e>

There is result:

enter image description here

  • 2
    But this doesn't lead to the output you wanted, at least according to the third screenshot in your question, where you say you want 0.01 to be formatted as 0.1 * 10^-2 – Jake Apr 2 '15 at 16:59
  • Yes, you are right. I apologize for bad example and my inconsistent, I should wrote in my question the following text only: "how to set max and min value of exponent, that determine, would number display in a fixed format or a science format", instead that numerous examples and rules. – Queue Overflow Apr 2 '15 at 17:24
  • Sorry for the wasting your time :( – Queue Overflow Apr 2 '15 at 17:24
  • 1
    No problem. It's good that you answered your own question after you found the solution! I look forward to your next questions and/or answers; we're all here to learn together, including the best way to ask questions =) – Jake Apr 2 '15 at 18:12

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.