This is a workaround that doesn't work in some cases, like when the
upper border should instead be transparent, as it would be in some
other terminals. Is there a solution for that?
Thomas Sefzick <t.sefzick@...> said (on 2011/10/27):
> Subject: Re: [Gnuplot-info] Problems with errorbar and border
>
>
> you may fix this by drawing a white line where the upper border would be
> located:
>
> set arrow 1 from graph 0, 1 to graph 1, 1 nohead front linecolor rgb "white"
>
>
> Patrik.Br. wrote:
> > Hello everyone
> >
> > I want to plot a data set with errorbars and showing only the left and
> > lower border. I've set the yrange so that some of the errorbars will
> > extend outside the range. However, removing the top border reveals that
> > the errorbars that go outside the graph get a tic at the upper limit of
> > the y-range, making the errorbars look shorter than they really are. Can I
> > fix this or is it a bug?
> >
> > Here's an example:
> >
> > Code:
> >
> > reset
> > set terminal epslatex standalone color size 12cm, 4cm font "cmr,8"
> > set output 'mwe2.tex'
> >
> > # Set ranges and tics
> > set yrange [0 : 22]
> > set xrange [0 : 11]
> > set xtics 1 nomirror
> > set ytics 4 nomirror
> >
> > # Show only left and lower borders
> > set border 3
> >
> > # Plot
> > plot 'data.dat' using 1:3:4 with errorb ls 1 notitle
> >
> >
> > ...and here's a sample data file:
> > 1.0000 1.0000 1.7062 9.9417
> > 2.0000 3.0000 3.7585 8.2323
> > 3.0000 5.0000 5.4395 2.5743
> > 4.0000 7.0000 7.3054 0.0440
> > 5.0000 9.0000 9.7473 2.0102
> > 6.0000 11.0000 11.6045 2.4656
> > 7.0000 13.0000 13.1175 7.4214
> > 8.0000 15.0000 15.3401 0.5689
> > 9.0000 17.0000 18.8288 11.9895
> > 10.0000 19.0000 19.9611 14.3540
> >
|