|
From: Thomas S. <t.s...@fz...> - 2011-10-27 18:40:49
|
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 > -- View this message in context: http://old.nabble.com/Problems-with-errorbar-and-border-tp32730027p32733481.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |