[yt-users] NameError: name 'SlicePlot' is not defined

Reju Sam John rejusamjohn at gmail.com
Fri Feb 22 10:53:11 PST 2013


Hello all,
I the following code

from yt.mods import *
pf = load("RD0015/RedshiftOutput0015")
p= SlicePlot(pf,2,'Density','c',(20,'kpc'))
p.save('sliceplot')


it is showing an error

*Traceback (most recent call last):
  File "sliceplot_Density.py", line 3, in <module>
    p = SlicePlot(pf,2,'Density','c',(20,'kpc'))
NameError: name 'SlicePlot' is not defined*


what is the reason? is there files we have to import.
-- 
Reju Sam John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130222/4483d73f/attachment.htm>


More information about the yt-users mailing list