<div dir="ltr">Hi Stefano,<div><br></div><div>The image you sent looks to me like the slice is not centered on a region of high density -- more likely, it's centered at the center of the domain, where perhaps the resolution is lower (resulting in the pixels).  Can you show the full script you used?  And the output of:</div>


<div><br></div><div>pf.h.find_max("Density")</div><div><br></div><div>or something like that, so we can see where the center is and where the slice is centered?  To center on the most dense point I *believe* you can do something like specify the slice center as "max" rather than a number (with the quotes around hte word max).</div>

<div><br></div><div>-Matt</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 7:22 AM, stefano bovino <span dir="ltr"><<a href="mailto:poetaste@gmail.com" target="_blank">poetaste@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div>Hi all, <br>when using the following script fromt the yt.project website <br><a href="http://yt-project.org/doc/cookbook/multi_plot_slice_and_proj.py" target="_blank">multi_plot_slice_and_proj.py</a> I have problems if I change the resolution from mpc to pc.<br>




<br><pre><span>slc_frb</span> <span>=</span> <span>slc</span><span>.</span><span>to_frb</span><span>((</span><span>1.0</span><span>,</span> <span>"mpc"</span><span>),</span> <span>512</span><span>) --> </span><span>slc_frb</span> <span>=</span> <span>slc</span><span>.</span><span>to_frb</span><span>((</span><span>1.0</span><span>,</span> <span>"pc"</span><span>),</span> <span>512</span><span>)</span></pre>




</div><div>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 solution? <br><br></div>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).<br>
<br>Thank you in advance.<div><div><img></div></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>