%matplotlib inline import yt ds = yt.load("GasSloshingLowRes/sloshing_low_res_hdf5_plt_cnt_0300") slc = yt.SlicePlot(ds, [1.0,1.0,1.0], ["density"]) slc.set_axes_unit("code_length") slc.show()