1import yt 2 3# Load the dataset. 4ds = yt.load("Enzo_64/DD0043/data0043") 5 6# Make a density projection. 7p = yt.ProjectionPlot(ds, "y", ("gas", "density")) 8 9# Modify the projection 10# The argument specifies the region along the line of sight 11# for which particles will be gathered. 12# 1.0 signifies the entire domain in the line of sight. 13p.annotate_grids() 14 15# Save the image. 16# Optionally, give a string as an argument 17# to name files with a keyword. 18p.save() 19 20