Commits

Nathan Goldbaum committed e3eb7f5

Removing the import * from write_projection. Small adjustments to avoid errors.
eps writing is broken (something is wrong on the matplotlib end)

Comments (0)

Files changed (1)

yt/visualization/image_writer.py

                          take_log=True)
     """
     import matplotlib
-    from ._mpl_imports import *
+    from ._mpl_imports import FigureCanvasAgg, FigureCanvasPdf, FigureCanvasPS
 
     # If this is rendered as log, then apply now.
     if take_log:
     else:
         suffix = '.png'
         filename = "%s%s" % (filename, suffix)
-    mylog.info("Saving plot %s", fn)
+    mylog.info("Saving plot %s", filename)
     if suffix == ".png":
         canvas = FigureCanvasAgg(fig)
     elif suffix == ".pdf":
         canvas = FigureCanvasPdf(fig)
     elif suffix in (".eps", ".ps"):
         canvas = FigureCanvasPS
-    canvas.print_figure(filename)
+    canvas.print_figure(canvas,filename)
     return filename