Path: csiph.com!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=C3=B6rg_Buchholz?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: rgb Date: Tue, 30 Apr 2024 07:12:42 +0200 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 30 Apr 2024 07:12:41 +0200 (CEST) Injection-Info: dont-email.me; posting-host="76a054d6780a7487f603e1c7cdc5c097"; logging-data="2401650"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xxFnQndaqR8oN9QbuS1T4JeDA6/bHiEo=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Y/7g2JGfEUcia4omgD8xf51troI= Content-Language: de-DE, en-GB In-Reply-To: Xref: csiph.com comp.graphics.apps.gnuplot:4663 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