HI Nathan ,Thanks, I fixed it, but I need to cut through a different plane than z=0 , so that i get a little more material through sliceplot through z plane, I used command
slc = SlicePlot ( ds, 'z', 'field' , origin = 'lower-center-domain')
-BestMy question is is there any way I can cut through z = 1 and not through z = 0 ?but changing the origin still returns me the same plot as it did when I did not include the origin.On Wed, Aug 3, 2016 at 3:59 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:On Wed, Aug 3, 2016 at 2:56 PM, tazkera haque <h.tazkera@gmail.com> wrote:what changes should I make to this command ?Hi yt people,I have this issue, where I want to get the sliceplots through z and x axis, my x axis slice plot is OK but the sliceplot through z axis does not show much info. I assume the yt sliceplot through z is defined through z=0, may I make a sliceplot that goes through z = 1 , 2 or z = -1 , -2 ?
c =[0,0,0]
p1 = yt.SlicePlot(pf,field, c)I tried changing c = [0,0,2] , it didn't make any change to my plot.Thanks-TazkeraHi Tazkera,You want to do something like:p1 = yt.SlicePlot(ds, 'z', field, center=c)Looking at the API docs for SlicePlot you can see how you weren't actually setting the center keyword argument (since you only used three positional arguments):
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org