[yt-users] profile plots combining different datasets

tyuta y0u1t1a5.t at gmail.com
Thu Oct 26 13:15:47 PDT 2017


Hi Suoqing Ji,

Thanks! I'll try that.

2017-10-26 15:59 GMT-04:00 Suoqing Ji <suoqing at physics.ucsb.edu>:

> Hi t yuta,
>
> What you can do is to get the data as numpy array directly from the
> profiles you’ve generated, and sum them up by yourself. You can follow the
> last example at: http://yt-project.org/docs/dev/visualizing/plots.
> html#d-profile-plots
>
> For each dataset, you can have one profile:
> profile = plot.profiles[0]
>
> Then you can sum up profile[‘cell_mass'] over different datasets, and plot
> it against profile.x
>
> Best wishes,
>> Suoqing Ji
> Ph.D Candidate
> Department of Physics
> University of California, Santa Barbara
> http://physics.ucsb.edu/~suoqing
>
> On Oct 26, 2017, 12:51 PM -0700, tyuta <y0u1t1a5.t at gmail.com>, wrote:
>
> Dear yt-users,
>
> Hi, I want to ask you about profile plot. I'm analyzing Enzo data, and I'm
> trying to plot metallicity-cellmass of different 12 datasets into one
> curve. I can plot 12 curves on one image, but that's not what I want. Does
> anyone know some good way, or links to documentation?
> I've attached the 12-curve plot. I want to sum up all the curves to get
> one curve.
>
> Thanks,
> Y.T.[image: 埋め込み画像 2]
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171026/da547653/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02C67ABD76E846418AE113C0B10469D2.png
Type: image/png
Size: 88454 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171026/da547653/attachment-0001.png>


More information about the yt-users mailing list