I have a tikz picture, which consists of a visible part on the left side and a white part on the right side (for some constructive reasons). Now I would like to redefine the size so that the new picture just consists of the left part (without scaling).
How do you do that?
Best Answer
You have to explicitly set the bounding box of the picture. TikZ provides the
use as bounding box
option to do that. For exampleIf you want to shrink an already established bounding box, you have to reset it with
\pgfresetboundingbox
first:Other useful options for modifying the bounding box are the
trim left
andtrim right
options totikzpicture
. Section 15.7 “Establishing a Bounding Box” of the TikZ manual (v2.10) has all the details.