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

Cameron Bracken cameron.bracken at gmail.com
Wed Apr 21 22:12:10 CEST 2010


It may be because in the second case you are not specifying a width
and height of the device.  Can you send examples of the output from
both so I can see exactly what you mean?  Do you mean the spacing is
different in the pdf or screen device as opposed to tikzDevice?

-Cameron



On Wed, Apr 21, 2010 at 6:24 AM, Matthieu Oit <matthieu.gts9 at yahoo.fr> wrote:
> 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
>
>
>
>
> _______________________________________________
> Tikzdevice-bugs mailing list
> Tikzdevice-bugs at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tikzdevice-bugs
>


More information about the Tikzdevice-bugs mailing list