Source

yt.geometry_tests / plot_slice.py

import time
t1 = time.time()
from yt.mods import *
pf = load("DD0039/output_0039")
pc = PlotCollection(pf, 'c')
pc.add_slice("Density", 0)
pc.add_cutting_plane("Density", [0.1, 0.2, 0.3])
pc.save()
t2 = time.time()
print "Took %0.3e" % (t2-t1)