Ninja's question is
"Where the heck did you get the 3 from" :D
y=tanx is centred on (0,0) (at least on of the periods is)
so if you wanted points rotationally symmetrical on either side they would be
(0-x,0-y) and (0+x,0+y)
so they could be
your points are (-pi/2 , 2) and (pi/2 , 4)
The y values are 2 and 4 so the centre of them is 3 Hence the graph has be lifted up 3 .
That is where the 3 came from :/