On 5/29/24 01:42, [email protected] 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
_______________________________________________
yt-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/yt-users.python.org/
Member address: [email protected]