TITLE: Counter example to Mostow's rigidity theorem for 2-manifolds.
QUESTION [7 upvotes]: I am trying to understand a counter-example to Mostow's rigidity theorem.
Here is the counter example I want to understand.
Take two non-isometric octagons with the sum of interior angles equal to $2\pi$. Then they form fundamental domains for non-isometric surfaces.
My questions are: how can we visualise such two hyperbolic octagons, how can we see that the fundamental groups of these surfaces would be isomorphic?

REPLY [4 votes]: Since the question itself has already been answered, this answer will add some references for further study. As Joseph Zambrano points out in the comments to his answer, "local rigidity" fails for two dimensional hyperbolic structures.  This is a hint of the deep, beautiful theory of moduli spaces of geometric structures. 
Bill Goldman's survey paper "Geometric Structures and Varieties of Representations" is dense but readable. For a deeper, foundational guide to geometric structures --- and really, if you're interested in hyperbolic geometry at all --- Thurston's notes can be found here. Chapter five is devoted to the study of the flexibility and rigidity of hyperbolic structures.
A good place to start in the literature on local rigidity is Garland's paper, which proves local subgroup rigidity under certain conditions. A good place to start on the deformation space of hyperbolic surfaces is Hubbard's Teichmuller Theory.