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


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

Re: Axis number format

X-Received by 2002:a37:9a91:: with SMTP id c139mr12462481qke.151.1610295851212; Sun, 10 Jan 2021 08:24:11 -0800 (PST)
X-Received by 2002:a25:8112:: with SMTP id o18mr19186868ybk.208.1610295850991; Sun, 10 Jan 2021 08:24:10 -0800 (PST)
Path csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Sun, 10 Jan 2021 08:24:10 -0800 (PST)
In-Reply-To <rtf3q2$uq2$1@dont-email.me>
Complaints-To groups-abuse@google.com
Injection-Info google-groups.googlegroups.com; posting-host=2601:547:300:da50:4c23:73f8:b97:3933; posting-account=yC8mVwkAAADuRBqBIdPVfec50l5EMdYn
NNTP-Posting-Host 2601:547:300:da50:4c23:73f8:b97:3933
References <rtf3q2$uq2$1@dont-email.me>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <374584b2-98bc-4dbf-bf6f-d5e88de1afbcn@googlegroups.com> (permalink)
Subject Re: Axis number format
From Gavin Buxton <gavinbuxton@gmail.com>
Injection-Date Sun, 10 Jan 2021 16:24:11 +0000
Content-Type text/plain; charset="UTF-8"
Lines 36
Xref csiph.com comp.graphics.apps.gnuplot:4385

Show key headers only | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next 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