[Tikzdevice-bugs] Distance between axis and labels in plots

Matthieu Oit matthieu.gts9 at yahoo.fr
Wed Apr 21 14:24:22 CEST 2010


Hello tikzdevice-bug list members,

I don't know if it's a bug but I can't manage to modify the distances between axis and labels in plots generated by tikzDevice. 

For instance : 
"
tikz("example.tex", width = 3.5, height = 3.5)
plot(c(1,2,3),cex=0.5,type="p",xaxt="n",yaxt="n")
axis(2, mgp=c(3, 0.5, 0),tcl=-0.1)
axis(1, mgp=c(3, 0.5, 0),tcl=-0.1)
dev.off()
"
after \input{example.tex} gives a very different output than : 
"
plot(c(1,2,3),cex=0.5,type="p",xaxt="n",yaxt="n")
axis(2, mgp=c(3, 0.5, 0),tcl=-0.1)
axis(1, mgp=c(3, 0.5, 0),tcl=-0.1)
"
I'm a beamer user and because of the size of the frames (128mm x 96mm), the  distances between horizontal axis and ticks labels are too large to include beautiful plots generated by tikzDevice.  Is there a solution ?

Thanks for any help and thanks to
 Charlie and Cameron for providing tikzDevice and pfgSweave.

Cheers,

Matthieu 



      


More information about the Tikzdevice-bugs mailing list