<div dir="ltr">And by default, I think the radius field is always uniformly binned in log space. You can see for yourself by inspecting the underlying Profile1D object associated with the ProfilePlot:<div><br></div><div><a href="http://paste.yt-project.org/show/6946/" target="_blank">http://paste.yt-project.org/<wbr>show/6946/</a><br></div><div><br></div><div>Here profile.x is the centers of the radius bins (profile.x_bins is the bin edges). Note how when I take the logarithm of profile.x, then subtract neighboring bin centers, I get a constant array: the bin sizes are constant in log space.</div><div><br></div><div>-Nathan</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 24, 2016 at 7:16 PM, Suoqing Ji <span dir="ltr"><<a href="mailto:suoqing@physics.ucsb.edu" target="_blank">suoqing@physics.ucsb.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Marco,<div><br></div><div>Sorry that I do not understand what you mean by saying “does not bin the data uniformly in log radius”... In ProfilePlot you can set x_log=True to get a log bin in radius (<a href="http://yt-project.org/docs/dev/reference/api/generated/yt.visualization.profile_plotter.ProfilePlot.html#yt.visualization.profile_plotter.ProfilePlot" target="_blank">http://yt-project.org/docs/de<wbr>v/reference/api/generated/yt.<wbr>visualization.profile_plotter.<wbr>ProfilePlot.html#yt.visualizat<wbr>ion.profile_plotter.ProfilePlo<wbr>t</a>), and np.logspace will be called to get a log bin uniformly.</div><div><br></div><div>Do you want something other than that?</div><div><br><div>
<div><div>Best wishes,</div><div>--</div><div>Suoqing JI</div><div>Ph.D Candidate</div><div>Department of Physics</div><div>University of California, Santa Barbara</div><div><a href="http://web.physics.ucsb.edu/~suoqing" target="_blank">http://web.physics.ucsb.edu/~s<wbr>uoqing</a></div></div>

</div>
<br><div><blockquote type="cite"><div><div class="m_6560668699151454446h5"><div>On Nov 24, 2016, at 3:39 PM, Marco Surace <<a href="mailto:marco.surace@port.ac.uk" target="_blank">marco.surace@port.ac.uk</a>> wrote:</div><br class="m_6560668699151454446m_6826149982216336192Apple-interchange-newline"></div></div><div><div><div class="m_6560668699151454446h5"><div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I have been using yt.ProfilePlot to create 1D spherically averaged profiles of say the gas temperature in a simulation as a function of radius, starting from the centre of a halo out to a given radius. <br><br></div>Does anyone know how I can bin the data uniformly in log radius? This would improve the resolution at smaller radii. It currently does not bin the data uniformly in linear or log radius. I haven't found an option with ProfilePlot for affecting the binning.<br><br></div>Best wishes,<br></div>Marco<br></div></div></div>
______________________________<wbr>_________________<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/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br></div></blockquote></div><br></div></div><br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br>
<br></blockquote></div><br></div></div>