[yt-users] Is it possible to apply cut_region to add_slice or SlicePlot?
Reju Sam John
rejusamjohn at gmail.com
Mon Dec 2 02:32:14 PST 2013
Dear All,
pf = load(fn) # load data
ad = pf.h.all_data()
new_region = ad.cut_region(['grid["Velocity_Div"] >-10.0
','grid["Velocity_Div"] < -3'])
plot = ProjectionPlot(pf, "z", "Density", weight_field="Density",
data_source=new_region)
plot.set_width(20, 'mpc')
plot.save()
With the above code I can produce a ProjectionPlot which only contain
regions of specified condition. I want to the SlicePlot of same, is it
possible?
Thanks
--
Reju Sam John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20131202/4210ea12/attachment.htm>
More information about the yt-users
mailing list