diff should not specifically rely on matplotlib as it breaks design of naarad that allows a user specified graphing module. Use the same approach as metric.py 
<pre>
graphed, div_file = Metric.graphing_modules[graphing_library].graph_data(....
</pre>