Browse files

(draw - reinstate matplotlib use directive with a FIXME explaining wh…

…y it is needed)

Ignore-this: 681bd3c33aedaa8895d7d5b085066aac

  • Loading branch information...
MattShannon committed Jul 16, 2013
1 parent 8e83c53 commit 30d8ff7505cf0ce5db9581a90daabf4ba07d2400
Showing with 7 additions and 0 deletions.
  1. +7 −0 armspeech/speech/
@@ -16,6 +16,13 @@
import armspeech.numpy_settings
import matplotlib
import matplotlib.transforms as transforms
+# FIXME : below is necessary to avoid errors when drawing graphs when an
+# X server is not defined, for example when running distributed jobs.
+# This is dissatisfying, however, since stateful stuff like this should not
+# be set while importing a module (or even on a per-function-call basis).
+# The best solution is probably to use the matplotlib API rather than the
+# pyplot interface, in which case you explicitly specify the backend to use.
def partitionSeq(xs, numPartitions):

0 comments on commit 30d8ff7

Please sign in to comment.