From an existing object, create a 1D, binned profile.
This function will accept an existing AMRData source and from that, it will generate a Binned1DProfile, based on the specified options. This is useful if you have extracted a region, or if you wish to bin some set of massages data – or even if you wish to bin anything other than a sphere. 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.
Parameters : | data_source : yt.lagos.AMRData
fields : list of strings
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
>>> reg = pf.h.region([0.1, 0.2, 0.3], [0.0, 0.1, 0.2],
[0.2, 0.3, 0.4])
>>> pc.add_profile_object(reg, ["Density", "Temperature"])