
Hi all, I am trying to create a simple slice plot for the central 1 pc of a simulation box of size 1 mpc using the following simplest script. Problem occurs when I set plot width as can be seen in attached plot. I tried stable version of yt as well development fork but did not get any success. Slice works well without any problem if I use pc.add_slice method. Any ideas what is going wrong here. thanks in advance, Cheers Latif SlicePlot(pf, 'x', "Density", width = (800.0, 'kpc')).save()

Hi Latif, I'm a bit confused - were you trying to make a plot with a width of 1 pc or 800 kpc? If the line you pasted at the end of the e-mail produced the plot you see, I'd say that's a bug, but if you were trying to plot only the central 1 parsec of the simulation box, then I think the plot is correct. Can you clarify exactly what you did to produce the plot? Thanks, Nathan On Fri, Apr 26, 2013 at 12:09 PM, Latif <latifne@gmail.com> wrote:
Hi all, I am trying to create a simple slice plot for the central 1 pc of a simulation box of size 1 mpc using the following simplest script. Problem occurs when I set plot width as can be seen in attached plot. I tried stable version of yt as well development fork but did not get any success. Slice works well without any problem if I use pc.add_slice method. Any ideas what is going wrong here. thanks in advance, Cheers Latif
SlicePlot(pf, 'x', "Density", width = (800.0, 'kpc')).save()
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Latif, Try specifying center="max" when creating the SlicePlot. Matt On Apr 26, 2013 3:10 PM, "Latif" <latifne@gmail.com> wrote:
Hi all, I am trying to create a simple slice plot for the central 1 pc of a simulation box of size 1 mpc using the following simplest script. Problem occurs when I set plot width as can be seen in attached plot. I tried stable version of yt as well development fork but did not get any success. Slice works well without any problem if I use pc.add_slice method. Any ideas what is going wrong here. thanks in advance, Cheers Latif
SlicePlot(pf, 'x', "Density", width = (800.0, 'kpc')).save()
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Nathan and Matt, thanks for a prompt response. Specifying the center as pointed out by Matt in slice plot does the trick. Nathan, I tried to make a plot with a width of 1pc using the recipe I pasted earlier. Please let me know if it is not clear. Cheers Latif On Fri, Apr 26, 2013 at 9:13 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Latif,
Try specifying center="max" when creating the SlicePlot.
Matt On Apr 26, 2013 3:10 PM, "Latif" <latifne@gmail.com> wrote:
Hi all, I am trying to create a simple slice plot for the central 1 pc of a simulation box of size 1 mpc using the following simplest script. Problem occurs when I set plot width as can be seen in attached plot. I tried stable version of yt as well development fork but did not get any success. Slice works well without any problem if I use pc.add_slice method. Any ideas what is going wrong here. thanks in advance, Cheers Latif
SlicePlot(pf, 'x', "Density", width = (800.0, 'kpc')).save()
_______________________________________________ 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
participants (3)
-
Latif
-
Matthew Turk
-
Nathan Goldbaum