From: SourceForge.net <noreply@so...>  20121011 09:30:09

Bugs item #3575839, was opened at 20121009 14:58 Message generated for change (Comment added) made by dem666 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3575839&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: None Priority: 5 Private: No Submitted By: David J. López (dem666) Assigned to: Nobody/Anonymous (nobody) Summary: Nonnegative numbers are displayed too right in plots Initial Comment: I've noticed in maxima plots (based on postcript with gnuplot) that the positive numbers are slightly rightshifted from their axis ticks marks. I include a figure, see numbers 0, 1, 2 and 3 in the x axis of plot2d(sin(x),[x,3,3]) Using epslatex I've found the reason, see the space in the output of nonnegative the axis marks labels: \put(946,704){\makebox(0,0)[r]{\strut{}1}}% \put(946,1111){\makebox(0,0)[r]{\strut{}0.8}}% \put(946,1518){\makebox(0,0)[r]{\strut{}0.6}}% \put(946,1925){\makebox(0,0)[r]{\strut{}0.4}}% \put(946,2332){\makebox(0,0)[r]{\strut{}0.2}}% \put(946,2740){\makebox(0,0)[r]{\strut{} 0}}% \put(946,3147){\makebox(0,0)[r]{\strut{} 0.2}}% \put(946,3554){\makebox(0,0)[r]{\strut{} 0.4}}% \put(946,3961){\makebox(0,0)[r]{\strut{} 0.6}}% \put(946,4368){\makebox(0,0)[r]{\strut{} 0.8}}% \put(946,4775){\makebox(0,0)[r]{\strut{} 1}}% \put(1078,484){\makebox(0,0){\strut{}3}}% \put(2032,484){\makebox(0,0){\strut{}2}}% \put(2986,484){\makebox(0,0){\strut{}1}}% \put(3941,484){\makebox(0,0){\strut{} 0}}% \put(4895,484){\makebox(0,0){\strut{} 1}}% \put(5849,484){\makebox(0,0){\strut{} 2}}% \put(6803,484){\makebox(0,0){\strut{} 3}}% In the y axis the left space is not a problem, but in the xaxis the ticks must be \put(3941,484){\makebox(0,0){\strut{}0}}% \put(4895,484){\makebox(0,0){\strut{}1}}% \put(5849,484){\makebox(0,0){\strut{}2}}% \put(6803,484){\makebox(0,0){\strut{}3}}% without the left space. PD: It seems it's a postcript problem. png or gif figures seems to be fine  Comment By: David J. López (dem666) Date: 20121011 02:30 Message: The leading space is done by design in gnuplot. In maxima it can be corrected with [gnuplot_preamble,"set format '%g'"] (in plot) user_preamble="set format '%'" (in draw)  Comment By: David J. López (dem666) Date: 20121010 16:53 Message: After talking with Mario I've noticed that actually it's a gnuplot bug, not a maxima bug. This bug can be closed, I've opened it on gnuplot: https://sourceforge.net/tracker/?func=detail&aid=3576172&group_id=2055&atid=102055  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=3575839&group_id=4933 