From: Daniel J S. <dan...@ie...> - 2004-08-05 17:40:35
|
OK, I think I have narrowed this down. It has to do with the xrange being slightly less than a whole number. You may or may not feel this is gnuplot's problem or Octave should be worrying about this. I'll just describe it. Launch gnuplot with the -nofeedback option. Then type the following set of commands: set xrange [0:1.99805] set grid plot sin(x) set xrange [0:2] replot set xrange [0:1.99805] replot You should notice this behavior on the right border toggling back and forth. So, yes it does seem that the border is being drawn a pixel to the left because of the 1.99805. So I guess the question is whether a grid line should be drawn at all in this scenario. It probably has something to do with rounding. If you run gnuplot without the -nofeedback option, the feedback will slightly readjust the x length and the rounding will behave differently. But if you move your x-window about a bit, in some locations you should see the right border shifted slightly to the left. I guess what I'm saying is that on your particular system, if you run "gnuplot -nofeedback" and then set xrange [0:1.99805] set grid set term png set output 'junk.png' plot sin(x) set output You should get a PNG file with the aberration. Your X11 system may behave slightly different depending upon your system settings. Unless someone wants to tackle this now, I think in the next couple days I'll put it in SourceForge bug list along with a couple other items before I forget them. Dan |