j: Next unread message
k: Previous unread message
j a: Jump to all threads
j l: Jump to MailingList overview
Thank you! And I was wondering how exactly the output array corresponds to the image?
For example, in the above ImageArray, what do the rows/colums mean?
Thanks again, Julie
On Jan 21, 2018, at 8:45 AM, Nathan Goldbaum firstname.lastname@example.org wrote:
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:
http://yt-project.org/doc/visualizing/manual_plotting.html#fixed-resolution-... http://yt-project.org/doc/visualizing/manual_plotting.html#fixed-resolution-... http://yt-project.org/doc/analyzing/generating_processed_data.html?highlight... http://yt-project.org/doc/analyzing/generating_processed_data.html?highlight... http://yt-project.org/doc/reference/api/yt.visualization.fixed_resolution.ht... http://yt-project.org/doc/reference/api/yt.visualization.fixed_resolution.ht...
Hope that helps,
On Sun, Jan 21, 2018 at 12:47 AM Julia Rakas <email@example.com mailto:firstname.lastname@example.org> wrote: 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?
yt-users mailing list -- email@example.com To unsubscribe send an email to firstname.lastname@example.org