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


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

Re: Specifying yerrorbar style

From jikk <aixer77@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Specifying yerrorbar style
Date 2011-11-11 08:42 -0800
Organization http://groups.google.com
Message-ID <c65a7424-e179-476e-923b-46425a0dbbeb@q16g2000yqn.googlegroups.com> (permalink)
References <4ef826b8-524b-47ab-ba5c-06922ed949cb@q16g2000yqn.googlegroups.com> <8c306d56-6913-4e9c-9925-c635ad1fe48b@w3g2000vbw.googlegroups.com> <dca7634a-e1a3-4d3e-999d-28dea70040d1@p9g2000vbb.googlegroups.com> <6a31a60f-8764-4c16-ad2d-314d4b8fa69b@u5g2000vbd.googlegroups.com>

Show all headers | View raw


On Nov 9, 6:01 pm, Péter Juhász <peter.juhas...@gmail.com> wrote:
> On Nov 9, 10:40 pm, jikk <aixe...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > On Nov 9, 10:45 am, Péter Juhász <peter.juhas...@gmail.com> wrote:
>
> > > On Nov 7, 11:39 pm, jikk <aixe...@gmail.com> wrote:
>
> > > > Hi, all
>
> > > > plotting script that used to work for the previous version of gnuplot
> > > > (v4.2.6) no longer work for the latest version (v4.4.0) and produces
> > > > error messages for
> > > > the following script line.
>
> > > > plot "data_file" u ($1+0.5):2 title "legend1" w boxes fs solid 0.85,
> > > > "" u ($1+0.5):2:3 notitle w yerrorbars 1,
> > > > ....
>
> > > > The error goes away as I change "yerrorbars 1" to "yerrorbars".
> > > > However, this prohibits the customization of  the errorbar style.
> > > > Can anyone tell me how can I do this right?
>
> > > > Thanks for your help, in advance.
>
> > > > Regards, Jikk
>
> > > yerrorbars lt 1
>
> > > The syntax you were trying to use was deprecated since version 4.0.
>
> > > Péter Juhász
>
> > Hi, Péter
>
> > By having "lt", I could suppress the error message but this doesn't
> > seem to be the solution that I wanted.
> > It still draw an arbitrary markings for errorbars. In the case of the
> > test script that I provided, it draws 'x' mark whereas what I want to
> > have is a dashed-line the same one as the first error bar has.
>
> > Thanks for your help!
> > Jikk
>
> Replace your plot command with the following:
>
> plot "test.dat" u ($1+0.5):2 title "test0"  \
>         w boxes fs solid 0.85,              \
>         "" u ($1+0.5):2:3 notitle w yerrorbars lt 1 pt 0,     \
>         "" u ($1+1.5):4 title "test1" w boxes lt 3 fs solid 0.7, \
>         "" u ($1+1.5):4:5 notitle w yerrorbars lt 3 pt 0
>
> Or even better:
>
> plot "fosxx.txt" u ($1+0.5):2:3 title "test0" \
>           w boxerrorbar lt 1 fs solid 0.85,\
>      "" u ($1+1.5):4:5 notitle w boxerrorbar lt 3 fs solid 0.7
>
> Péter Juhász

this is the exact solution that I wanted

> plot "fosxx.txt" u ($1+0.5):2:3 title "test0" \
>           w boxerrorbar lt 1 fs solid 0.85,\
>      "" u ($1+1.5):4:5 notitle w boxerrorbar lt 3 fs solid 0.7

Thanks Péter!

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


Thread

Specifying yerrorbar style jikk <aixer77@gmail.com> - 2011-11-07 14:39 -0800
  Re: Specifying yerrorbar style jikk <aixer77@gmail.com> - 2011-11-09 07:28 -0800
  Re: Specifying yerrorbar style Péter Juhász <peter.juhasz83@gmail.com> - 2011-11-09 07:45 -0800
    Re: Specifying yerrorbar style jikk <aixer77@gmail.com> - 2011-11-09 13:40 -0800
      Re: Specifying yerrorbar style Péter Juhász <peter.juhasz83@gmail.com> - 2011-11-09 15:01 -0800
        Re: Specifying yerrorbar style jikk <aixer77@gmail.com> - 2011-11-11 08:42 -0800

csiph-web