Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

No line available at 300 baud.


computers / 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
Subject: How to plot x-axis tics [0 - 10 10 - 0]
From: Abhi Shek
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 4 Jun 2021 12:05 UTC
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"
View all headers
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


Subject: Re: How to plot x-axis tics [0 - 10 10 - 0]
From: Gavin Buxton
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 4 Jun 2021 17:43 UTC
References: 1
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"
View all headers
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


Subject: Re: How to plot x-axis tics [0 - 10 10 - 0]
From: Jörg_Buchholz
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Mon, 7 Jun 2021 09:30 UTC
References: 1
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
View all headers

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
rocksolid light 0.7.2
clearneti2ptor