1import yt 2 3# load the dataset 4ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030") 5 6# This is an object that describes the entire box 7ad = ds.all_data() 8 9# We plot the average velocity magnitude (mass-weighted) in our object 10# as a function of density and temperature 11plot = yt.PhasePlot( 12 ad, ("gas", "density"), ("gas", "temperature"), ("gas", "velocity_magnitude") 13) 14 15# save the plot 16plot.save() 17 18