<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 19, 2015 at 11:49 AM, Stephanie Tonnesen <span dir="ltr"><<a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi all, <br><br>I am trying to make a profile plot of a cylindrical radial value.  So I politely ask:<br><br>ds = yt.load("/data/stonnes/dwarf_test_rhopress_extrarot/DD"+sys.argv[1]+"/DD44sMBherlr"+sys.argv[1])<br>....<br>my_disk = ds.disk([0.5,0.5,0.5],[0,0,1],(30,"kpc"),(0.1,"kpc"))<br>....<br>profiles.append(yt.create_profile(my_disk,"cylindrical_r","density",weight_field="cell_mass"))<br>....<br>plot=yt.ProfilePlot.from_profiles(profiles,labels=labels)<br>plot.set_unit('cylindrical_r','kpc')<br>plot.set_log('cylindrical_r',False)<br>plot.save()<br><br></div>And when my box is 96 kpc across, with a root 512 512 512 grid, 2 levels of refinement at 20.0 times initial density, I get what I wanted, a nice profile out to 30 kpc.<br><br></div>BUT, when I ask the same thing starting with a lower resolution root grid:  256 256 256, my profile only goes out to 15 kpc!  <br></div></div></div></div></div></blockquote><div><br></div><div>Is the problem that the plot not displaying correctly or is the issue with the raw profile data?  ProfilePlot has a set_xlim method that might be useful here.</div><div><br></div><div>If you have</div><div><br></div><div>profile = yt.create_profile(my_disk,"cylindrical_r","density",weight_field="cell_mass")</div><div><br></div><div>it might be illustrative to look at profile.x, and profile['density'].  You might also need to manually set the extrema for the profile by passing in an extrema dictionary to create_profile.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><br></div>I changed my disk to have a 40 kpc radius and it made no difference.  <br><br></div>Can anyone tell me why this is happening?  Thanks!<br><br></div>Stephanie<br></div><br clear="all"><div><div><div><div><div><div><div><div><div><div dir="ltr"><div><div><div><font face="garamond,serif">--<br>Dr. Stephanie Tonnesen<br></font></div><font face="garamond,serif">Alvin E. Nashman Postdoctoral Fellow<br></font></div><font face="garamond,serif">Carnegie Observatories, Pasadena, CA<br></font></div><font face="garamond,serif"><a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a><br></font></div></div></div>
</div></div></div></div></div></div></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">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>