#445811 gnuplot: default y2axis labels have different offset than y1axis labels (postscript) #445811
- Package:
- gnuplot-doc
- Source:
- gnuplot
- Submitter:
- Johannes Wiedersich
- Date:
- 2010-09-14 08:12:11 UTC
- Severity:
- wishlist
For the postscript enhanced terminal output, the numbers labeling the axes have a larger distance from the y2axis than from those from the yaxis. The gnuplot file: $ cat wrong_y2-distance.gp set y2tics set term post enh set out 'wrong_y2-distance.ps' plot [30:50] 40*(sin(x) +1) results a ps-file. The plot and ranges are chosen to be as 'symmetrical' as possible with respect to y- and y2-axes, but the problem occurs for other settings as well. Inspecting the file with gv, I observer that the distance of "0" to the axis is 8 postscript points for the yaxis and 12 postscript points for the y2axis and is clearly visible in the print out as well. For different fonts, font sizes and different plot ranges, the absolute numbers are different, but it appears that the spacing of y2tick labels is consistently 50% larger than that of ytick labels. Thanks, Johannes
/============
$ grep "( " wrong_y2-distance.ps
[ [(Helvetica) 140.0 0.0 true true 0 ( 0)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 10)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 20)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 30)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 40)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 50)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 60)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 70)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 80)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 30)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 35)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 40)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 45)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 50)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 0)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 10)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 20)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 30)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 40)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 50)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 60)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 70)]
[ [(Helvetica) 140.0 0.0 true true 0 ( 80)]
\============
leads to the core of the problem: gnuplot inserts an extra space just in
front of each label to the axes.
Manually removing all spaces between "(" and the numbers from the
finished ps-file is a work around to this bug.
Cheers,
Johannes Wiedersich
This bug is confirmed for lenny's version of gnuplot. Johannes
tag 445811 + upstream severity 445811 minor forwarded 445811 https://sourceforge.net/tracker/?func=detail&aid=3065386&group_id=2055&atid=102055 thanks
reassign 445811 gnuplot-doc severity 445811 wishlist forwarded 445811 https://sourceforge.net/tracker/?func=detail&aid=3065769&group_id=2055&atid=102055 thank you Reassign to doc as friom upstream: