Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"I'm a mean green mother from outer space" -- Audrey II, The Little Shop of Horrors


devel / comp.graphics.apps.gnuplot / How to plot x-axis tics [0 - 10 10 - 0]

SubjectAuthor
* How to plot x-axis tics [0 - 10 10 - 0]Abhi Shek
+- Re: How to plot x-axis tics [0 - 10 10 - 0]Gavin Buxton
`- Re: How to plot x-axis tics [0 - 10 10 - 0]Jörg Buchholz

1
How to plot x-axis tics [0 - 10 10 - 0]

<f3f8cc0b-8214-4a48-8bae-8d036db46db5n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=37&group=comp.graphics.apps.gnuplot#37

 copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:a05:620a:404d:: with SMTP id i13mr3847027qko.24.1622808316724;
Fri, 04 Jun 2021 05:05:16 -0700 (PDT)
X-Received: by 2002:a25:e045:: with SMTP id x66mr4530071ybg.287.1622808316323;
Fri, 04 Jun 2021 05:05:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 4 Jun 2021 05:05:16 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=192.19.203.250; posting-account=qhj6lAoAAABFv0sD96uyFdyUzNn0YqAg
NNTP-Posting-Host: 192.19.203.250
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f3f8cc0b-8214-4a48-8bae-8d036db46db5n@googlegroups.com>
Subject: How to plot x-axis tics [0 - 10 10 - 0]
From: abhicoo...@gmail.com (Abhi Shek)
Injection-Date: Fri, 04 Jun 2021 12:05:16 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Abhi Shek - Fri, 4 Jun 2021 12:05 UTC

Hi All,

I would like to have my x-axis tics marked as 0-10 and then again start decrementing from 10 - 0.

For example, the axis should look like below.

"0 2 4 6 8 10 8 6 4 2 0"

Regards,
Abhishek G

Re: How to plot x-axis tics [0 - 10 10 - 0]

<ffaa2538-b366-4610-9150-391338701daan@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=38&group=comp.graphics.apps.gnuplot#38

 copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:ae9:eb43:: with SMTP id b64mr5535927qkg.329.1622828608961;
Fri, 04 Jun 2021 10:43:28 -0700 (PDT)
X-Received: by 2002:a25:aa05:: with SMTP id s5mr7656502ybi.67.1622828608653;
Fri, 04 Jun 2021 10:43:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 4 Jun 2021 10:43:28 -0700 (PDT)
In-Reply-To: <f3f8cc0b-8214-4a48-8bae-8d036db46db5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:547:300:da50:7d92:806d:f3a8:8865;
posting-account=yC8mVwkAAADuRBqBIdPVfec50l5EMdYn
NNTP-Posting-Host: 2601:547:300:da50:7d92:806d:f3a8:8865
References: <f3f8cc0b-8214-4a48-8bae-8d036db46db5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ffaa2538-b366-4610-9150-391338701daan@googlegroups.com>
Subject: Re: How to plot x-axis tics [0 - 10 10 - 0]
From: gavinbux...@gmail.com (Gavin Buxton)
Injection-Date: Fri, 04 Jun 2021 17:43:28 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Gavin Buxton - Fri, 4 Jun 2021 17:43 UTC

You can make the tics be whatever you want. Here's an example:

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

Obviously, you can't have a function that has two x-values, but you could label 12 as "8" and 14 as "6", etc... you would just have to modify your data or function accordingly.

set xtics ("0" 0, "2" 2, "4" 4, "6" 6, "8" 8 "10" 10, "8" 12, "6" 14, "4" 16, "2" 18, "0" 20)

Best

Gavin

Re: How to plot x-axis tics [0 - 10 10 - 0]

<s9kov8$jup$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=39&group=comp.graphics.apps.gnuplot#39

 copy link   Newsgroups: comp.graphics.apps.gnuplot
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bookwood...@freenet.de (Jörg Buchholz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: How to plot x-axis tics [0 - 10 10 - 0]
Date: Mon, 7 Jun 2021 11:30:15 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <s9kov8$jup$1@dont-email.me>
References: <f3f8cc0b-8214-4a48-8bae-8d036db46db5n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 7 Jun 2021 09:30:16 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c10ffbb94f3e54ae86e00d2fae738af3";
logging-data="20441"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NhCAjvhQIhV8u9hpKUejX9DTilwdRwbM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:QNeG9YEs0QqxIil58Qy0CqdqVNk=
In-Reply-To: <f3f8cc0b-8214-4a48-8bae-8d036db46db5n@googlegroups.com>
Content-Language: en-GB
 by: Jörg Buchholz - Mon, 7 Jun 2021 09:30 UTC

On 04.06.2021 14:05, Abhi Shek wrote:
> Hi All,
>
> I would like to have my x-axis tics marked as 0-10 and then again start decrementing from 10 - 0.
>
> For example, the axis should look like below.
>
> "0 2 4 6 8 10 8 6 4 2 0"

With "multiplot" you can put two plots side by side. Example below:

reset
set yrange [-1:1]
set y2range [-1:1]
set multiplot layout 1,2
set xrange [0:10]
set rmargin 0
plot sin(x)
set rmargin
set lmargin 0
set xrange [10:0]
unset ytics
set y2tics mirror
plot sin(x)
unset multiplot

Jörg

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor