Hey Guys, I'd like to take a phase diagram and convert it to a simple array to plot alongside some other nifty stuff in matplotlib. A couple questions related to this aim (feel free to ignore ones that seem dumb): 1. Since I can add a phase object to a plot collection, is there a way to convert a plot collection (or piece of it?) to a fixed resolution buffer? OR 2. Data objects made with pf.h.FUNCTION seem to be pass-able to the fixed resolution buffer function. Is there a way to create phase plots this way, instead of with plot collections? OR, maybe 3. Objects like simple line profiles have simple arrays living inside them. Is there a simple 2D array I can pull out of the phase plot object? thanks! Munier -- Munier A. Salem // 845.489.6450
Hi Munier, I think you're looking for BinnedProfile2D. There's more information about how to use it (http://yt-project.org/docs/2.4/analyzing/generating_processed_data.html#prof...) and initialize it (http://yt-project.org/docs/2.4/api/generated/yt.data_objects.profiles.Binned...) in the docs. -Nathan
Thanks Nathan! That seems great. On Thu, Feb 7, 2013 at 2:40 PM, Nathan Goldbaum <nathan12343@gmail.com>wrote:
Hi Munier,
I think you're looking for BinnedProfile2D. There's more information about how to use it ( http://yt-project.org/docs/2.4/analyzing/generating_processed_data.html#prof...) and initialize it ( http://yt-project.org/docs/2.4/api/generated/yt.data_objects.profiles.Binned...) in the docs.
-Nathan
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- Munier A. Salem // 845.489.6450
participants (2)
-
Munier Azzam Salem
-
Nathan Goldbaum