X-Received: by 2002:a02:b5e5:: with SMTP id y34mr3400669jaj.21.1542775831094; Tue, 20 Nov 2018 20:50:31 -0800 (PST) X-Received: by 2002:aca:4eca:: with SMTP id c193mr80778oib.7.1542775830850; Tue, 20 Nov 2018 20:50:30 -0800 (PST) Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!z5-v6no48501ite.0!news-out.google.com!v141ni41ita.0!nntp.google.com!q69no47187itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Tue, 20 Nov 2018 20:50:30 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=14.139.45.243; posting-account=8SNwFAoAAACMlYSccTSYy0kXtaQrNAbU NNTP-Posting-Host: 14.139.45.243 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Plot each points of data file with different colours in GNUPLOT From: Savin Beniwal Injection-Date: Wed, 21 Nov 2018 04:50:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 34 Xref: csiph.com comp.graphics.apps.gnuplot:4078 On Tuesday, November 20, 2018 at 10:45:10 PM UTC+5:30, Karl Ratzsch wrote: > Am 20.11.2018 um 17:36 schrieb Savin Beniwal: > > Hi I'm trying to plot a data file which consists of six rows & three co= lumn (labelled 'X', 'Y', and 'sigma_error_Y' ) > > Data File--->> > > X Y error >=20 > > I want to plot each point with different colours in Gnuplot with error = bars with each point. I'm able to plot it with yerrorbars but it gives me t= he same colour of each point.=20 >=20 > That's easy: >=20 > # so I don't have to create a data file > $dat << EOD > 0.7780. 0.5661 0.0623 > 0.7699. 1.0100 0.1111 > 0.7069. 0.6246 0.0687 > 0.6525. 0.6681 0.0735 > 0.5253 0.4946. 0.0544 > 0.2587 0.2228 0.0245 > EOD >=20 > plot $dat us 1:2:3:0 with yerrorbars lc variable > # the line number (column "zero") controls the colour >=20 > > Please Help me ASAP. >=20 THANK YOU, KARL, FOR FREE HELPING. HIGHLY OBLIGED TO YOU.=F0=9F=98=82 > this looks slightly impolite. you're looking for free help, remember? ;-) AGAIN THANKS TO CORRECT ME REGARDING GOOD MANNERS. NOTED FOR THE FUTURE. = =F0=9F=98=8A