From: John W. E. <jw...@be...> - 2004-08-18 17:38:08
|
After upgrading to gnuplot 4.0, I've noticed that the y-tic marks crash into the axis when I'm making 3-d plots with the pslatex driver. I also see similar results with the epslatex driver. Here is an example of the gnuplot commands I'm using set nokey set hidden3d set view 30, 145, 1, 1 set xrange [-8:8] set yrange [-6:6] set zrange [-0.2:1] set isosamples 21 set terminal pslatex set output "bug.tex" splot sin(sqrt(x**2+y**2+1e-16))/sqrt(x**2+y**2+1e-16) and the main.tex file: \documentclass{article} \begin{document} \input{bug.tex} \end{document} The TeX part of the bug.tex file includes the lines \put(372,1487){\makebox(0,0)[r]{ 1}}% \put(372,1431){\makebox(0,0)[r]{ 0.8}}% \put(372,1376){\makebox(0,0)[r]{ 0.6}}% \put(372,1320){\makebox(0,0)[r]{ 0.4}}% \put(372,1264){\makebox(0,0)[r]{ 0.2}}% \put(372,1208){\makebox(0,0)[r]{ 0}}% \put(372,1153){\makebox(0,0)[r]{-0.2}}% \put(1351,366){\makebox(0,0){ 4}}% < these labels crash \put(1172,485){\makebox(0,0){ 2}}% < into the y axis \put(994,603){\makebox(0,0){ 0}}% < \put(815,722){\makebox(0,0){-2}}% < \put(636,841){\makebox(0,0){-4}}% < \put(457,960){\makebox(0,0){-6}}% < \put(1815,265){\makebox(0,0)[l]{ 6}}% \put(2006,328){\makebox(0,0)[l]{ 4}}% \put(2198,390){\makebox(0,0)[l]{ 2}}% \put(2389,452){\makebox(0,0)[l]{ 0}}% \put(2581,515){\makebox(0,0)[l]{-2}}% \put(2772,577){\makebox(0,0)[l]{-4}}% \put(2964,639){\makebox(0,0)[l]{-6}}% \put(3155,702){\makebox(0,0)[l]{-8}}% If I use gnuplot 3.7.2, I don't see the problem and the TeX part of the file includes the lines \put(371,1487){\makebox(0,0)[r]{ 1}}% \put(371,1431){\makebox(0,0)[r]{ 0.8}}% \put(371,1376){\makebox(0,0)[r]{ 0.6}}% \put(371,1320){\makebox(0,0)[r]{ 0.4}}% \put(371,1264){\makebox(0,0)[r]{ 0.2}}% \put(371,1208){\makebox(0,0)[r]{ 0}}% \put(371,1153){\makebox(0,0)[r]{-0.2}}% \put(1343,361){\makebox(0,0)[r]{ 4}}% \put(1164,479){\makebox(0,0)[r]{ 2}}% \put(986,598){\makebox(0,0)[r]{ 0}}% \put(807,717){\makebox(0,0)[r]{-2}}% \put(628,836){\makebox(0,0)[r]{-4}}% \put(449,954){\makebox(0,0)[r]{-6}}% \put(1802,279){\makebox(0,0){ 6}}% \put(1994,342){\makebox(0,0){ 4}}% \put(2185,404){\makebox(0,0){ 2}}% \put(2377,466){\makebox(0,0){ 0}}% \put(2568,529){\makebox(0,0){-2}}% \put(2760,591){\makebox(0,0){-4}}% \put(2951,653){\makebox(0,0){-6}}% \put(3143,716){\makebox(0,0){-8}}% Note the change in the way the x and y axis labels are typeset: 3.7.2 4.0 y label \makebox[r]{...} \makebox{...} x label \makebox{...} \makebox[l]{...} Why the change? Thanks, jwe |