
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@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. _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org