Thank you very much. This is very useful!
I got an error that:
AttributeError: 'AxisAlignedSlicePlot' object has no attribute 'to_pw'
Another thing, when use down sample for data analysis.
I find that
dd = ds.all_data()
Is the same as
dd.max_level = 2
Do I miss anything?
The trick is to generate a slice data object and then use that data object to create the SlicePlot:
ds = yt.load('IsolatedGalaxy/galaxy0030/galaxy0030')
slc = ds.slice('x', 0.5)
slc.max_level = 2
plot = slc.to_pw('density')
Note that all yt data objects support both a min_level and max_level attribute to control the levels at which data selection happens.
Hope that helps,
yt-users mailing list -- email@example.com
To unsubscribe send an email to firstname.lastname@example.org