Source

2012-issac-yt / slice_plot_resize.py

1
2
3
4
5
from yt.mods import *
pf = load('galaxy0030/galaxy0030')
p = SlicePlot(pf, 2, 'Density', 'c', (200,'kpc'))
p.set_width(20, 'kpc')
p.save("GalaxyZoom")