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


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

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

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 csiph.com!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> (permalink)
Subject Re: How to plot x-axis tics [0 - 10 10 - 0]
From Gavin Buxton <gavinbuxton@gmail.com>
Injection-Date Fri, 04 Jun 2021 17:43:28 +0000
Content-Type text/plain; charset="UTF-8"
Xref csiph.com comp.graphics.apps.gnuplot:4413

Show key headers only | View raw


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

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


Thread

How to plot x-axis tics [0 - 10 10 - 0] Abhi Shek <abhicool50@gmail.com> - 2021-06-04 05:05 -0700
  Re: How to plot x-axis tics [0 - 10 10 - 0] Gavin Buxton <gavinbuxton@gmail.com> - 2021-06-04 10:43 -0700
  Re: How to plot x-axis tics [0 - 10 10 - 0] Jörg Buchholz <bookwood4new@freenet.de> - 2021-06-07 11:30 +0200

csiph-web