Skip to content

Commit

Permalink
RF: Make matplotlib an optional import.
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem committed Aug 4, 2012
1 parent 898a401 commit d0ed95e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dipy/viz/projections.py
Expand Up @@ -8,9 +8,14 @@
import numpy as np
import scipy.interpolate as interp

import matplotlib
import matplotlib.pyplot as plt
import matplotlib.tri as tri
try:
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.tri as tri
except ImportError:
e_s = "You do not have Matplotlib installed. Some visualization functions"
e_s += " might not work for you."
print(e_s)

import dipy.core.geometry as geo

Expand Down

0 comments on commit d0ed95e

Please sign in to comment.