• Axis number format

    From Dieter Britz@21:1/5 to All on Sun Jan 10 14:43:14 2021
    Here is plot I am working with:
    www.dieterbritz.dk/gnu4.pdf

    It is only a partial plot and the X-axis will go further
    as the program produces more data, to higher T values. I
    would like all the numbers be in the form 10^*, not 1 x ..
    and not converting to plain f-format, i.e.
    10^{-10}, 10^{-9}, ... 10^0, 10^1, ...

    How do I do that?

    --
    Dieter Britz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gavin Buxton@21:1/5 to Dieter Britz on Sun Jan 10 08:24:10 2021
    Hi

    I don't know if there is a way to do this automatically, but for a given plot you can set the tics to be whatever you want. Here' the example:

    set xtics ("low" 0, "medium" 50, "high" 100)

    For your plot it would be something like

    set xtics ("1^{-10}" 1e-10, "1^{-9}" 1e-9, "1^{-8}" 1e-8, "1^{-7}" 1e-7, "1^{-6}" 1e-6, "1^{-5}" 1e-5, "1^{-4}" 1e-4, "1^{-3}" 1e-3, "1^{-2}" 1e-2, "1^{-1}" 1e-1)

    Note if this is too cluttered you can do just odd or even or whatever:

    set xtics ("1^{-10}" 1e-10, "1^{-8}" 1e-8, "1^{-6}" 1e-6, "1^{-4}" 1e-4, "1^{-2}" 1e-2, "1" 1)

    Just make sure when you set your terminal you set "advanced", as I don't think superscripts work otherwise (might be wrong though).

    Best


    Gavin



    On Sunday, January 10, 2021 at 9:43:16 AM UTC-5, Dieter Britz wrote:
    Here is plot I am working with:
    www.dieterbritz.dk/gnu4.pdf

    It is only a partial plot and the X-axis will go further
    as the program produces more data, to higher T values. I
    would like all the numbers be in the form 10^*, not 1 x ..
    and not converting to plain f-format, i.e.
    10^{-10}, 10^{-9}, ... 10^0, 10^1, ...

    How do I do that?

    --
    Dieter Britz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Karl Ratzsch@21:1/5 to All on Mon Jan 11 09:34:04 2021
    Enhanced mode is the default since ~5.0

    And there is a host of advanced format specifiers available for the
    use with gprintf() and in gp format definition strings.

    set xtics format "10^{%T}"

    check "help format specifiers"

    Cheers, Karl



    Am 10.01.2021 um 17:24 schrieb Gavin Buxton:
    Hi

    I don't know if there is a way to do this automatically, but for a given plot you can set the tics to be whatever you want. Here' the example:

    set xtics ("low" 0, "medium" 50, "high" 100)

    For your plot it would be something like

    set xtics ("1^{-10}" 1e-10, "1^{-9}" 1e-9, "1^{-8}" 1e-8, "1^{-7}" 1e-7, "1^{-6}" 1e-6, "1^{-5}" 1e-5, "1^{-4}" 1e-4, "1^{-3}" 1e-3, "1^{-2}" 1e-2, "1^{-1}" 1e-1)

    Note if this is too cluttered you can do just odd or even or whatever:

    set xtics ("1^{-10}" 1e-10, "1^{-8}" 1e-8, "1^{-6}" 1e-6, "1^{-4}" 1e-4, "1^{-2}" 1e-2, "1" 1)

    Just make sure when you set your terminal you set "advanced", as I don't think superscripts work otherwise (might be wrong though).


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)