May 29, 2024
5:40 a.m.
On 5/29/24 01:42, hyf@stu.pku.edu.cn wrote:
Dear Matthew,
I print all the attributes of a ParticlePhasePlot by calling, it seems .x and .y and [] are not included:
here is the codes to generate a ParticlePhasePlot:
ptcslc = yt.ParticlePhasePlot( ds, ptc_xname, ptc_yname, [ptc_zname], color=ptc_colorname, weight_field=('particles', 'Ones'), x_bins=400, y_bins=400 ) print(dir(ptcslc))
You need to access 'profile' property first: ptcslc.profile.x and ptcslc.profile.y Cheers, Kacper