Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4076

Re: Plot each points of data file with different colours in GNUPLOT

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plot each points of data file with different colours in GNUPLOT
Date 2018-11-20 18:15 +0100
Organization solani.org
Message-ID <pt1fet$ahk$1@solani.org> (permalink)
References <a37cf32f-9966-45cc-944f-77e59e49951e@googlegroups.com>

Show all headers | View raw


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 column (labelled 'X', 'Y', and 'sigma_error_Y' )
> Data File--->>
>  X            Y                error

> 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 the same colour of each point. 

That's easy:

# 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

plot $dat us 1:2:3:0 with yerrorbars lc variable
# the line number (column "zero") controls the colour

> Please Help me ASAP.

this looks slightly impolite. you're looking for free help, remember? ;-)

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Plot each points of data file with different colours in GNUPLOT Savin Beniwal <darshanbeniwal11@gmail.com> - 2018-11-20 08:36 -0800
  Re: Plot each points of data file with different colours in GNUPLOT Karl Ratzsch <mail.kfr@gmx.net> - 2018-11-20 18:15 +0100
    Re: Plot each points of data file with different colours in GNUPLOT Savin Beniwal <darshanbeniwal11@gmail.com> - 2018-11-20 20:50 -0800
      Re: Plot each points of data file with different colours in GNUPLOT Karl Ratzsch <mail.kfr@gmx.net> - 2018-11-21 09:51 +0100
        Re: Plot each points of data file with different colours in GNUPLOT Savin Beniwal <darshanbeniwal11@gmail.com> - 2018-11-21 22:17 -0800

csiph-web