Hi Julia,
If I create a ProjectionPlot like so:
p = ProjectionPlot(ds, 'z', ('gas', 'density'))
Then I can access the image array you are looking for like this:
image = p.frb['gas', 'density']
This is using the FixedResolutionBuffer object that is associated with the ProjectionPlot. You also don't need to create a ProjectionPlot to do this, you can instead manually create a FixedResolutionBuffer object. See the following doc pages:
Hope that helps,
Nathan
Hello,
When I do yt.off_axis_projection(…) I get an array as an output. My question is how I can get an output array for regular projection plots? And does the output array correspond to the actual image that it otherwise would have plotted?
Thanks,
Julie
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org