Skip to content

Commit

Permalink
Defer matplotlib loading until we need it
Browse files Browse the repository at this point in the history
Only one function in interactive.py uses matplotlib so load
matplotlib when that function is called.
  • Loading branch information
timj authored and wmwv committed Jan 19, 2016
1 parent 6acae98 commit 9d318d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/meas/modelfit/display/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def fit(self, outRecord):
def plotDistribution(self, *records):
"""Plot a representation of the posterior distribution from a ModelFitRecord.
"""
import matplotlib
recordId = records[0].getId()
figure = matplotlib.pyplot.figure(recordId, figsize=(10, 10))
data = {}
Expand Down

0 comments on commit 9d318d3

Please sign in to comment.