|
From: Patrik.Br. <pat...@gm...> - 2011-10-27 09:20:58
|
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-tp32730027p32730027.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
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. |
|
From: Tait <gnu...@t4...> - 2011-10-30 06:03:41
|
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.s...@fz...> 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 > > |
|
From: Patrik.Br. <pat...@gm...> - 2011-11-01 19:36:30
|
Hello, and thank you for the answer. Unfortunately I have a grid with a dashed grid line at the top, and I don't want to hide that. I don't want to set the grid in front of the errorbars either because that looks a little strange for the other data. Thomas Sefzick wrote: > > 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" > -- View this message in context: http://old.nabble.com/Problems-with-errorbar-and-border-tp32730027p32761156.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2011-11-01 20:23:45
|
you could download the gnuplot sources and change/add a few lines in 'graphics.c'. the following patch is for the development version of gnuplot: http://old.nabble.com/file/p32761454/graphics.patch graphics.patch Patrik.Br. wrote: > > Hello, and thank you for the answer. Unfortunately I have a grid with a > dashed grid line at the top, and I don't want to hide that. I don't want > to set the grid in front of the errorbars either because that looks a > little strange for the other data. > > > > Thomas Sefzick wrote: >> >> 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" >> > > -- View this message in context: http://old.nabble.com/Problems-with-errorbar-and-border-tp32730027p32761454.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |