How to draw a wide graph with TikZ?
I am using Tikz to draw a wide graph but starting from left and after reaching the middle of the graph the nodes fall outside of page. I tried playing with scale but the graph distorts and texts inside nodes does not conform to new scale well.
Can you use negative horizontal space in TikZ-Tex?
However, if your whole picture is wider than the text, this won’t help. In that case, you should be able to use a negative horizontal space: However, if you want centering, you could check out some of the solutions to a similar problem with over-wide tables, such as surrounding it in a zero-width box.
How to shift to new coordinate TikZ-TeX-LaTeX stack?
If you want to do exactly this, then put whatever you want to move in a scope, and provide the shift option to said scope (the curly braces are necessary so the comma isn’t thought to separate options). Something like However, if your whole picture is wider than the text, this won’t help.
How are the coordinates in a tikzpicture related?
The coordinates inside a tikzpictureis only relative to other things in that tikzpicture, not the frame/page. So if you have one tikzpicturethat contains just \\draw (0,0) — (1,1);and another one that contains just \\draw (120,0) — (121,1);, the two will look identical. As far as TeX is concerned, it just sees a box that is 1cm by 1cm.
How to shift in tikzpicture-TeX-LaTeX stack?
Also in your M(N)WE you use xshift={( , )}, but xshifttakes a dimension as argument. You should use shift={( , )}where you can set to 0, or use xshift= . You could draw an invisible path that outlines approximately the entire page such that you can draw inside that path.
How to reference a node in TikZ or PGF?
In PGF and in TikZ it is quite easy to define a node that you wish to reference at a later point. Once you have defined a node, there are different ways of referencing points of the node. 8.5.1 Named Anchor Coordinates