#445811 gnuplot: default y2axis labels have different offset than y1axis labels (postscript)

#445811#5
Date:
2007-10-08 11:03:35 UTC
From:
To:
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

#445811#10
Date:
2008-01-24 15:53:07 UTC
From:
To:
/============
$ 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

#445811#15
Date:
2008-03-03 16:15:30 UTC
From:
To:
This bug is confirmed for lenny's version of gnuplot.

Johannes

#445811#20
Date:
2010-09-13 16:06:33 UTC
From:
To:
tag 445811 + upstream
severity 445811 minor
forwarded  445811
https://sourceforge.net/tracker/?func=detail&aid=3065386&group_id=2055&atid=102055
thanks

#445811#29
Date:
2010-09-14 08:08:35 UTC
From:
To:
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: