Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

But what can you do with it? -- ubiquitous cry from Linux-user partner


devel / comp.graphics.apps.gnuplot / Re: Multiple coloured point lines

SubjectAuthor
* Multiple coloured point linesdb
`- Re: Multiple coloured point linesKarl Ratzsch

1
Multiple coloured point lines

<ur4tc7$35ets$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.graphics.apps.gnuplot
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterha...@gmail.com (db)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Multiple coloured point lines
Date: Wed, 21 Feb 2024 14:21:11 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ur4tc7$35ets$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 21 Feb 2024 13:21:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0acc893c937b04d76189cc7891614f61";
logging-data="3324860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19I+4tZOnBz9RqZnDk69LOxAmTGJ6ySWJY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mTeDPzcjQyxKhC5S0HTfr/cGE4M=
Content-Language: en-US
 by: db - Wed, 21 Feb 2024 13:21 UTC

Here is a mini example

gnuplot << eoi
set term postscript enh color eps 24
set output 'mini.eps'
set xlabel "x"
plot x w p pt 7 rgb 'black', \
x/2 w p pt 7 rgb 'red'
quit
eoi
gv mini.eps

This baulks at the first "rgb":

gnuplot> plot x w p pt 7 rgb 'black', x/2 w p pt 7 rgb 'red'
^
line 0: unexpected or unrecognized token: rgb

But if I leave out the second plot line (and terminate
the first properly (no ", \)) it gives me a plot of
a lot of blue points.
Why can't I have several coloured plots?
--
Dieter Britz

Re: Multiple coloured point lines

<ur8a0d$fifs$1@solani.org>

  copy mid

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

  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: Multiple coloured point lines
Date: Thu, 22 Feb 2024 21:15:12 +0100
Message-ID: <ur8a0d$fifs$1@solani.org>
References: <ur4tc7$35ets$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 22 Feb 2024 20:15:09 -0000 (UTC)
Injection-Info: solani.org;
logging-data="510460"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:O2yl1u3mmgpuqO17ZhK55O2ZFe8=
Content-Language: de-DE
In-Reply-To: <ur4tc7$35ets$1@dont-email.me>
X-User-ID: eJwFwQkBACAIA8BKItuAOPj1j+AdXaYdEAU+PoQ8JtqHZfoqB9tkc/QueORZU7VOyC55wQ/u2Q+1
 by: Karl Ratzsch - Thu, 22 Feb 2024 20:15 UTC

The syntax is

plot x lc rgb "black", x/2 lc rgb "red"

You missed the "lc" specifier.

Am 21.02.2024 um 14:21 schrieb db:
> Here is a mini example
>
> gnuplot << eoi
> set term postscript enh color eps 24
> set output 'mini.eps'
> set xlabel "x"
> plot x w p pt 7 rgb 'black', \
>      x/2 w p pt 7 rgb 'red'
> quit
> eoi
> gv mini.eps
>
> This baulks at the first "rgb":
>
> gnuplot> plot x w p pt 7 rgb 'black',      x/2 w p pt 7 rgb 'red'
>                          ^
>          line 0: unexpected or unrecognized token: rgb
>
> But if I leave out the second plot line (and terminate
> the first properly (no ", \)) it gives me a plot of
> a lot of blue points.
> Why can't I have several coloured plots?

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor