Path: csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: rgb Date: Tue, 30 Apr 2024 21:30:48 +0200 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 30 Apr 2024 19:30:46 -0000 (UTC) Injection-Info: solani.org; logging-data="241081"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:OB0CtASyXzafYVqFX7EJmhdxAH0= X-User-ID: eJwNysERACEIA8CWZEiilAMe9F/Cue+ly3Q3RIHDQTXQYR6TV6FTQct3iKNeyRWV/vmOfmHhBxPoEN4= In-Reply-To: Content-Language: de-DE Xref: csiph.com comp.graphics.apps.gnuplot:4665 Am 30.04.2024 um 10:35 schrieb db: > On Tue, 30 Apr 2024 07:12:42 +0200, Jörg Buchholz wrote: > >> On 29.04.2024 16:50, db wrote: >>> In a script intended to plot two sets of data points, >>> the plotting statement is >>> >>> plot 'plotII.dat' w p pt 7 rgb "blue",\ >>> 'plotIII.dat' w p pt 7 rgb "red" >>> >>> This produces the following error message. >>> >>> gnuplot> plot 'plotII.dat' w p pt 7 rgb "blue", 'plotIII.dat' w p pt 7 >>> rgb "red" >>> ^ >>> line 0: unexpected or unrecognized token: rgb >>> >>> But if I remove the second half, from the comma onwards, it does plot >>> the first set as blue points. >>> Why is this, and what should I do? >>> >>> >> morning, >> >> you must put a "lc" for linecolor in front of the rgb. >> >> plot 'plotII.dat' w p pt 7 lc rgb "blue",\ >> 'plotIII.dat' w p pt 7 lc rgb "red" >> >> Jörg > > Thank you, that works. I wonder why it works for > just one without the lc. > Doesn't work here, neither with 5.4 or 6.0 gnuplot> plot '+' w p pt 7 rgb 'blue' ^ unexpected or unrecognized token: rgb or an ancient 4.6 gnuplot> plot '+' w p pt 7 rgb 'blue' ^ ';' expected Best, Karl