<div dir="ltr">One other thing to note, especially for logarithmically spaced radial bins, it very well might be the case that there isn't any data in some o the bins at small radii. If you're worried about that, you might need to play with setting the leftmost bin edge or the bin spacing to get "nice" bins that all contain data.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 24, 2016 at 8:38 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@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">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/sh<wbr>ow/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><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Nathan</div></font></span><div><div class="h5"><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.v<wbr>isualization.profile_plotter.P<wbr>rofilePlot.html#yt.visualizati<wbr>on.profile_plotter.ProfilePlot</a><wbr>), 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_-740656788813518059m_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_-740656788813518059m_6560668699151454446m_6826149982216336192Apple-interchange-newline"></div></div><div><div><div class="m_-740656788813518059m_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.o<wbr>rg</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.o<wbr>rg</a><br>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>