I have several graphics (produced by TikZ) in my document. They all have different sizes. How do I get the height of each graphic to do some nasty calculations?
Edit
I want to access the picture height in the text (not in the picture!), e.g. "The picture above has a height of \the\tikzheight."
MWE
\documentclass{article}
\usepackage{tikz}
\begin{document}
% WHAT HEIGHT DO I HAVE?
\begin{tikzpicture}[scale=1.5]
% help lines
\draw[step=1,help lines,black!20] (-0.95,-0.95) grid (4.95,4.95);
% axis
\draw[thick,->] (-1,0) -- (5,0);
\draw[thick,->] (0,-1) -- (0,5);
% points
\foreach \Point/\PointLabel in {(1,1)/A, (3,1)/B, (1,4)/P_1, (3,4)/P_1}
\draw[fill=black] \Point circle (0.05) node[above right] {$\PointLabel$};
\end{tikzpicture}
\end{document}


tikzpicture: http://tex.stackexchange.com/a/11949/1952 – Ignasi May 04 '16 at 07:21\newdimen\tikzheightand print it like\showthe\tikzheight. – Andreas Schneider May 04 '16 at 07:24