Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Never make any mistaeks. -- Anonymous, in a mail discussion about to a kernel bug report


computers / comp.graphics.apps.gnuplot / Re: How to generate series of plots programmatically?

SubjectAuthor
* How to generate series of plots programmatically?Henryk Nowicki
`- Re: How to generate series of plots programmatically?Karl Ratzsch

1
Subject: How to generate series of plots programmatically?
From: Henryk Nowicki
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Thu, 9 Jan 2020 19:58 UTC
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: "Henryk ...@doe.com (Henryk Nowicki)
Newsgroups: comp.graphics.apps.gnuplot
Subject: How to generate series of plots programmatically?
Date: Thu, 9 Jan 2020 19:58:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <qv80lr$n7k$1@dont-email.me>
Injection-Date: Thu, 9 Jan 2020 19:58:51 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="0202e0e285bfa3376e3d654fdae65e2c";
logging-data="23796"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+40+W6OyrN9MITerdihyKw"
User-Agent: slrn/1.0.2 (OpenBSD)
Cancel-Lock: sha1:hI0lSRBWv3ML6W3wFcFAWrjUJx4=
View all headers
Hi, all!

How to generate series of plots with exactly the same numbers of finance bars on the
each plot?

What I want interactively can be achievid with something like this:

.....
set xrange[0:100]
replot
set xrange[100:200]
replot
set xrange[200:300]
replot
set xrange[300:400]
replot
set xrange[400:500]

etc. to the end of datafile

Here is the gnuplot script I'm working on:

#!/usr/local/bin/gnuplot
set term pngcairo enhanced font ",8" size 1600,900
set output "main.png"
set boxwidth 0.5 relative
set grid
set style line 1 lc rgb '#3B444B' lt 1 #border
set border linestyle 1
set errorbars 2.6
set border 3
set tics nomirror
set xtics 2
set xtics rotate by -90
set ytics 500
set xrange [30:60]
plot "< paste -d, main.db fast_sma long_sma signal.db" u 0:2:3:4:5 w finance lc rgb '#3B444B' lw 1.4, \
"" u 0:13 w l lc rgb '#FF7F50' lw 1.8, \
"" u 0:14 w l lw 1.8, \
"" u 15:16 w p lt 3 lc rgb 'red'

Thank you!


Subject: Re: How to generate series of plots programmatically?
From: Karl Ratzsch
Newsgroups: comp.graphics.apps.gnuplot
Organization: solani.org
Date: Fri, 10 Jan 2020 18:25 UTC
References: 1
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: mail....@gmx.net (Karl Ratzsch)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: How to generate series of plots programmatically?
Date: Fri, 10 Jan 2020 19:25:34 +0100
Organization: solani.org
Lines: 35
Message-ID: <qvafio$rae$1@solani.org>
References: <qv80lr$n7k$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: solani.org 1578680728 27982 127.0.0.43 (10 Jan 2020 18:25:28 GMT)
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Fri, 10 Jan 2020 18:25:28 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
Thunderbird/60.9.1
In-Reply-To: <qv80lr$n7k$1@dont-email.me>
Content-Language: de-DE-1901
X-User-ID: eJwFwYEBwCAIA7CXitIyz0EG/59gwi1ThYtyDgcWY/qiVQKU/Ec22OsiIRTR59BvL/dc2Q8GlRCK
Cancel-Lock: sha1:FMwc4sLviJxU1MO3/LFu8mD5joY=
View all headers
Several possibilities, check "help do", and "help plot for".

The range iteration is a bit tricky with "plot for" i think, the "do
for [] {}" loop has the disadvantage that you need to have a plot
already before iterating through you data with "replot". Try
generating an empty plot beforehand, e.g. via

     plot 0 lc rgb "white" notitle

if necessary.

  Karl

Am 09.01.2020 um 20:58 schrieb Henryk Nowicki:
Hi, all!

How to generate series of plots with exactly the same numbers of finance bars on the
each plot?

What I want interactively can be achievid with something like this:

....
set xrange[0:100]
replot
set xrange[100:200]
replot
set xrange[200:300]
replot
set xrange[300:400]
replot
set xrange[400:500]

etc. to the end of datafile




1
rocksolid light 0.7.2
clearneti2ptor