[yt-users] Plot of domain subset

Juan Camilo Ibanez Mejia jibanezmejia at amnh.org
Thu May 22 06:14:15 PDT 2014


Hi yt users,

I wanted to know if it is possible somehow to make plots (projections and slices) of a subregion of the domain, e.g. I define a sphere like :

sph= pf.h.sphere(center=[0,0,0], radius=(100,'pc’))

Now I want to plot the projection of the density of that region in the x axis:

slc = SlicePlot(sph, 'x', 'dens')

But then I get the following error:

AttributeError: 'AMRSphere' object has no attribute 'domain_width'

thanks for your help,

Juan



_____________________________
Juan Camilo Ibañez Mejia
Department of Astrophysics
American Museum of Natural History
+1-212-313-7435
jibanezmejia at amnh.org<mailto:jibanezmejia at amnh.org>
_____________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140522/5cf694fe/attachment.htm>


More information about the yt-users mailing list