From: Hans-Bernhard B. <br...@ph...> - 2004-08-24 16:38:19
|
Bret Foreman wrote: > Here's an example of the problem. The attached .dat file created the > attached .png file. Hmmm.. the .png didn't want to display, but I can see the problem in Windows, too, using a slightly modified script. The problem is two-fold. First, the ytic labels are rather long. > I guess what you mean is to add some spaces into the timefmt to push the > dates over to the right. No. I wanted to say you should put an actual line break into your format statment for the y tics. But that's not 'set timefmt', of course, but set format y "%m-%d\n%Y" and it doesn't completely fix the problem either --- well, not on Windows at least. If you rotate your plot around a little while, in a mouse-enabled GUI terminal driver like Windows or X11, you'll begin to see more clearly. The gnuplot axis labels are positioned differently depending on the angle of the border line on the paper, and thus on the 'set view' angles. In particular, the toggle between left, centered and right justification relative to the reference point, which in turn is given by extending of the tick mark itself to outside the graph box. This approach has problems mainly if the tick labels are rather long, while the view angles are such that the label is centered rather than left-justified. That's why choosing a shorter ytic label format should help. Choosing a different 'set view' angle should help, too. And I guess "set ytics rotate" will help quite a lot, if your driver supports it and your users can accept its results. |