I need 2 different TikZpictures with the same bounding box (the one of the first TikZpicture) because I need a perfect vertical alignment of the subfigures side by side.
Please, how can I handle this?
You can use the
If you don't know the dimensions of the first picture you can get them from the
The code below will set the accept same bounding box for the second picture.
This works if both pictures use only positive coordinates. Adjustment must be made if this isn't the case.
Another way to do it is to use a single tikzpicture environment and one scope environment:
Then the points plotted at (x,y) in each scope will be exactly 5cm apart.
The code of Martin is correct but if you want to know the width and the height of the picture, you can use
Now you get the width and the height of picture with
The height is