From a description of a sphere, create a 1D, binned profile.
This function will accept the radius of a sphere, and from that it will generate a Binned1DProfile, based on the specified options. The profile will be 1D, which means while it can have an arbitrary number of fields, those fields will all be binned based on a single field.
All subsequent parameters beyond “unit” will be passed verbatim to add_profile_object.
Parameters : | radius : float
unit : string
fields : list of strings
center : array_like, optional
weight : string, default “CellMassMsun”
accumulation : boolean, optional
x_bins : int, optional
x_log : boolean, optional
x_bounds : tuple of floats, optional
lazy_reader : boolean, optional
id : int, optional
figure : matplotlib.figure.Figure, optional
axes : matplotlib.axes.Axes, optional
|
---|---|
Returns : | plot : yt.raven.ProfilePlot
|
See also
Examples
>>> pc.add_profile_sphere(1.0, 'kpc', ["Density", "Electron_Fraction"])