long labels get cropped away when including in LaTeX (complete in tikz code)

5 views
Skip to first unread message

Gary B

unread,
Nov 18, 2022, 12:39:29 PM11/18/22
to tikzdevice
Hi there, 

Newbie here. 

I wanted to know, if there is any way to alter (probably) the boundaries of the graph. While my graph export works, I see all axis labels are exported in full to the Tikz code, when I \input{graph.tex} it always gets cropped a bit. It has nothing to do with size, because also using resize box from graphicx package still leads to the issue. I would love to handle the issue within R and the tikZ command, but I see no option for this. 

Guess the problem is in this part of the code: \begin{tikzpicture}[x=1pt,y=1pt]
\definecolor{fillColor}{RGB}{255,255,255}
\path[use as bounding box,fill=fillColor,fill opacity=0.00] (0,0) rectangle (505.89,505.89);
\begin{scope}
\path[clip] (100.38, 33.48) rectangle (499.89,481.17); ...

Any suggestions? 

I tried changing the size using tikz('graph.tex', width =5,   sanitize=TRUE) but this didn't solve the problem either. 


Thank you so much!


Reply all
Reply to author
Forward
0 new messages