Changing the argument to ' center = "max" ' for proj should fix the
projection, but for slice you will need to change:
v, c = pf.h.find_max("Density")
slc = pf.h.slice(2, c, ...
So that it also slices at the point of maximum density. Note also
that if you want to slice along x, you would change the 2's to 0's,
for y you would change to 1.
On Mon, Apr 29, 2013 at 8:59 AM, stefano bovino <firstname.lastname@example.org> wrote:
> Hi Kacper,
> my minimal resolution is less than 1 AU, the problem seems more related to
> the Matt's issue.
> The script is the same as in the yt website, here the link:
> the output of pf.h.find_max("Density") :
> (1.139355201341093e-11, array([ 0.49722083, 0.50645245, 0.49492896]))
> ---------- Forwarded message ----------
> From: Kacper Kowalik <email@example.com>
> Date: Mon, Apr 29, 2013 at 1:35 PM
> Subject: Re: [yt-users] slice plot
> To: firstname.lastname@example.org
> On 04/29/2013 01:22 PM, stefano bovino wrote:
>> Hi all,
>> when using the following script fromt the yt.project website
>> have problems if I change the resolution from mpc to pc.
>> slc_frb = slc.to_frb((1.0, "mpc"), 512) --> slc_frb = slc.to_frb((1.0,
>> "pc"), 512)
>> I even tried other ways (or scripts) to plot a slice of the density
>> changing the resolution, but the problem is still there. Do you have any
>> I just would like to create a 9 panels plot with slice of density, H2, and
>> Temperature with three different width (on the pc scale).
> Hi Stefano,
> what is the size of your computational domain or size of the smallest
> cell you have? You can obtain that information using:
> yt stats output_filename
> yt-users mailing list
yt-users mailing list