Also catch RuntimeError when importing pyplot in pid_response.py. v0.3
authorW. Trevor King <wking@drexel.edu>
Wed, 27 Jul 2011 16:08:43 +0000 (12:08 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 27 Jul 2011 16:08:49 +0000 (12:08 -0400)
commit8010c347226bcbb22123a89c4ac2d8676612cd19
treea5f469f5d4a3236f4a5c0a59f8ae7158f48d29e2
parent97a6c949d39ceb67d1a2cab56e313b0b7232730d
Also catch RuntimeError when importing pyplot in pid_response.py.

In case matplotlib is installed, but poorly configured for your
current situation.  For example, if you've SSHed into a host without
tunneling X, you can see:

  $ python -c 'import matplotlib.pyplot'
  /usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57:
    GtkWarning: could not open display
  ...
  RuntimeError: could not create GdkCursor object
examples/pid_repsonse.py