Only call figure.show if it exits.
authorW. Trevor King <wking@tremily.us>
Thu, 2 Aug 2012 16:19:48 +0000 (12:19 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 2 Aug 2012 16:19:48 +0000 (12:19 -0400)
commit29f0344f89483af840175ba4049ed8e467a3d567
tree94a62d865571478902d3241a3aa21a2928b1025d
parent99cf63177c26f22d0c2ac24d78fe477cb5da49a2
Only call figure.show if it exits.

For example, figures generated with the Agg backend don't have a
'show' method.
pypiezo/afm.py
pypiezo/base.py
pypiezo/surface.py
pypiezo/wiggle.py