Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Another megabytes the dust.


devel / comp.graphics.apps.gnuplot / Re: Change time scale yaxis

SubjectAuthor
* Change time scale yaxisscandari
`- Re: Change time scale yaxisKarl Ratzsch

1
Change time scale yaxis

<3bcaa4b0-cb39-4a58-b265-0bb03c420309n@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:a05:6214:1d0b:b0:4ad:8b6f:210 with SMTP id e11-20020a0562141d0b00b004ad8b6f0210mr17023579qvd.86.1664223760417;
Mon, 26 Sep 2022 13:22:40 -0700 (PDT)
X-Received: by 2002:aca:3b03:0:b0:34f:cdba:9626 with SMTP id
i3-20020aca3b03000000b0034fcdba9626mr237358oia.246.1664223760149; Mon, 26 Sep
2022 13:22:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.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: Mon, 26 Sep 2022 13:22:39 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=109.116.207.28; posting-account=R-Rj4goAAAA5QTH1mMpFoHEvhC72RRh3
NNTP-Posting-Host: 109.116.207.28
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3bcaa4b0-cb39-4a58-b265-0bb03c420309n@googlegroups.com>
Subject: Change time scale yaxis
From: scand...@gmail.com (scandari)
Injection-Date: Mon, 26 Sep 2022 20:22:40 +0000
Content-Type: text/plain; charset="UTF-8"
 by: scandari - Mon, 26 Sep 2022 20:22 UTC

Hello, I'm new to gnuplot. Want to obtain this sort of plot: https://i.stack.imgur.com/VV4Ex.png
This is my code but I can't change y scale :(
----------
$TIMES << EOT
2019-01-08 00:14
2019-05-08 03:14
2019-05-07 22:08
2019-08-07 22:08
EOT

set xtics time format "%m/%d"
set ytics time format "%H:%M"
set xlabel "Date (mm/dd)" font "Times, 12"
set ylabel "Time Of Day(hh:mm)" font "Times, 12"
set key tmargin reverse Left

set xrange [strptime("%Y-%m-%d","2019-01-01"):strptime("%Y-%m-%d","2019-10-30")]

plot $TIMES using (timecolumn(1,"%Y-%m-%d")) : (timecolumn(2,"%H:%M")) with points
-----------
Do you have suggestions? Thanks.

Re: Change time scale yaxis

<thjdr7$gfgl$1@solani.org>

 copy mid

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

 copy link   Newsgroups: comp.graphics.apps.gnuplot
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: mail....@gmx.net (Karl Ratzsch)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Change time scale yaxis
Date: Wed, 5 Oct 2022 10:04:54 +0200
Message-ID: <thjdr7$gfgl$1@solani.org>
References: <3bcaa4b0-cb39-4a58-b265-0bb03c420309n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 5 Oct 2022 08:04:55 -0000 (UTC)
Injection-Info: solani.org;
logging-data="540181"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.3.0
Cancel-Lock: sha1:m1fQeoSOiAa+S1qek0klAqbwSrY=
In-Reply-To: <3bcaa4b0-cb39-4a58-b265-0bb03c420309n@googlegroups.com>
Content-Language: de-DE
X-User-ID: eJwFwQcBACAIBMBKjyyJg4z+EbxTNrJyMTXR1Z3pdtGWCLx7PXPS0gmLF0CtD50qOtxdIfgttBGI
 by: Karl Ratzsch - Wed, 5 Oct 2022 08:04 UTC

Am 26.09.2022 um 22:22 schrieb scandari:
> Hello, I'm new to gnuplot. Want to obtain this sort of plot: https://i.stack.imgur.com/VV4Ex.png
> This is my code but I can't change y scale :(
> ----------
> $TIMES << EOT
> 2019-01-08 00:14
> 2019-05-08 03:14
> 2019-05-07 22:08
> 2019-08-07 22:08
> EOT
>
> set xtics time format "%m/%d"
> set ytics time format "%H:%M"
> set xlabel "Date (mm/dd)" font "Times, 12"
> set ylabel "Time Of Day(hh:mm)" font "Times, 12"
> set key tmargin reverse Left
>
> set xrange [strptime("%Y-%m-%d","2019-01-01"):strptime("%Y-%m-%d","2019-10-30")]
>
> plot $TIMES using (timecolumn(1,"%Y-%m-%d")) : (timecolumn(2,"%H:%M")) with points
> -----------
> Do you have suggestions? Thanks.

Hope there is no typo in the below:

wrap(x) = (x>12 ? x-24 : x)

set yrange [-13*3600:13*3600]
set ytics (-12 "noon", -6 "6pm", 0 "midnight", 6 "6am", 12 "noon")

plot $TIMES using (timecolumn(1,"%Y-%m-%d")) :
(wrap(timecolumn(2,"%H:%M"))) with points, 0 dt 2

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor