Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4387

Re: Axis number format

Path csiph.com!weretis.net!feeder8.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Axis number format
Date Mon, 11 Jan 2021 09:34:04 +0100
Message-ID <rth2hs$j1e$1@solani.org> (permalink)
References <rtf3q2$uq2$1@dont-email.me> <374584b2-98bc-4dbf-bf6f-d5e88de1afbcn@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Mon, 11 Jan 2021 08:34:04 -0000 (UTC)
Injection-Info solani.org; logging-data="19502"; mail-complaints-to="abuse@news.solani.org"
User-Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
X-User-ID eJwFwQERADEIAzBLY7QdyAHu8S/hE7pM8yAKXO60w7JDNadskFAuj11E1zjwNmuvl3/BOv0DFrYQ9A==
In-Reply-To <374584b2-98bc-4dbf-bf6f-d5e88de1afbcn@googlegroups.com>
Content-Language de-DE
Cancel-Lock sha1:ovLlPYtkpzEEoL/wGq1SGwz45jU=
Xref csiph.com comp.graphics.apps.gnuplot:4387

Show key headers only | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

Axis number format Dieter Britz <dieterhansbritz@gmail.com> - 2021-01-10 14:43 +0000
  Re: Axis number format Gavin Buxton <gavinbuxton@gmail.com> - 2021-01-10 08:24 -0800
    Re: Axis number format Karl Ratzsch <mail.kfr@gmx.net> - 2021-01-11 09:34 +0100

csiph-web