|
From: Bret F. <bre...@or...> - 2004-08-23 17:11:20
|
When using splot with a y-axis of time, the tic labels are overlapping the y-axis and both are therefore obscured. Looking at the documentation for x-tics, I can't find any setting to control the distance from the tic labels to the axis. Am I missing something? Thanks, Bret |
|
From: Hans-Bernhard B. <br...@ph...> - 2004-08-24 08:01:11
|
Bret Foreman wrote: > When using splot with a y-axis of time, the tic labels are overlapping the > y-axis and both are therefore obscured. That's most probably happening because your time labels are a good deal longer than typical numerical ones, or because your font is larger than gnuplot thinks it is? Care giving a reproducible example so others can debug this more meaningfully? Anyway: 'set timefmt' to create multi-line labels should help. > Looking at the documentation for > x-tics, I can't find any setting to control the distance from the tic labels > to the axis. Am I missing something? No --- there (still) is no such setting, except as a patch sitting on our bench at SourceForge.net. |
|
From: Bret F. <bre...@or...> - 2004-08-24 15:59:28
Attachments:
readrate7529.png
readrate7529.dat
|
Here's an example of the problem. The attached .dat file created the attached .png file. I guess what you mean is to add some spaces into the timefmt to push the dates over to the right. I tried that and it didn't seem to have any effect. gnuplot just seemed to "eat" the leading spaces. Thanks, Bret -----Original Message----- From: gnu...@li... [mailto:gnu...@li...]On Behalf Of Hans-Bernhard Broeker Sent: Tuesday, August 24, 2004 1:00 AM To: Bret Foreman Cc: gnu...@li... Subject: Re: [Gnuplot-info] moving tic labels Bret Foreman wrote: > When using splot with a y-axis of time, the tic labels are overlapping the > y-axis and both are therefore obscured. That's most probably happening because your time labels are a good deal longer than typical numerical ones, or because your font is larger than gnuplot thinks it is? Care giving a reproducible example so others can debug this more meaningfully? Anyway: 'set timefmt' to create multi-line labels should help. > Looking at the documentation for > x-tics, I can't find any setting to control the distance from the tic labels > to the axis. Am I missing something? No --- there (still) is no such setting, except as a patch sitting on our bench at SourceForge.net. ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Gnuplot-info mailing list Gnu...@li... https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
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. |
|
From: Bret F. <bre...@or...> - 2004-08-24 21:17:48
|
Adding the \n helps a little, though there is still some overlap. I'll experiment with the set view and rotate commands and see if I can get better results. Thanks, Bret -----Original Message----- From: gnu...@li... [mailto:gnu...@li...]On Behalf Of Hans-Bernhard Broeker Sent: Tuesday, August 24, 2004 9:37 AM To: Bret Foreman Cc: gnu...@li... Subject: Re: [Gnuplot-info] moving tic labels 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. ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Gnuplot-info mailing list Gnu...@li... https://lists.sourceforge.net/lists/listinfo/gnuplot-info |