Hi Marco,

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 (http://yt-project.org/docs/dev/reference/api/generated/yt.visualization.profile_plotter.ProfilePlot.html#yt.visualization.profile_plotter.ProfilePlot), and np.logspace will be called to get a log bin uniformly.

Do you want something other than that?

Best wishes,
--
Suoqing JI
Ph.D Candidate
Department of Physics
University of California, Santa Barbara
http://web.physics.ucsb.edu/~suoqing

On Nov 24, 2016, at 3:39 PM, Marco Surace <marco.surace@port.ac.uk> wrote:

Hi all,

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.

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.

Best wishes,
Marco
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org