Hi, I am trying to plot a power spectrum from some Enzo data. Trying to figure out how to do this, I stumbled across this post: http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2012-March/00242... I followed the instructions here, extracting a covering grid and using numpy.fft. My question now is, how do I create the plot? I've tried using PlotCollection, but I get an 'unhashable type' error when I plug in my Fourier transformed data as one of the inputs to the add_profile_sphere command. So how would I go about plotting this? Is there an alternate way to use PlotCollection, or should I be using something else altogether? Thanks in advance, Tyler Berg
Hi Tyler, If you have a covering grid, it would probably be best to not use the yt plotting commands. Instead, you should make your own plot with your favorite plotting system of choice. Matplotlib is a nice pure-python solution and the pylab interface is very nice if you're familiar with matlab. Cheers, Nathan On Jul 4, 2012, at 2:07 PM, Tyler Berg wrote:
Hi,
I am trying to plot a power spectrum from some Enzo data. Trying to figure out how to do this, I stumbled across this post:
http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2012-March/00242...
I followed the instructions here, extracting a covering grid and using numpy.fft. My question now is, how do I create the plot? I've tried using PlotCollection, but I get an 'unhashable type' error when I plug in my Fourier transformed data as one of the inputs to the add_profile_sphere command. So how would I go about plotting this? Is there an alternate way to use PlotCollection, or should I be using something else altogether?
Thanks in advance, Tyler Berg !DSPAM:10175,4ff4b0ae19648653422059! _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
!DSPAM:10175,4ff4b0ae19648653422059!
Hi Nathan, Thanks for the tip, much appreciated. Tyler
From: goldbaum@ucolick.org Date: Wed, 4 Jul 2012 19:01:40 -0700 To: yt-users@lists.spacepope.org Subject: Re: [yt-users] Power Spectrum
Hi Tyler,
If you have a covering grid, it would probably be best to not use the yt plotting commands. Instead, you should make your own plot with your favorite plotting system of choice. Matplotlib is a nice pure-python solution and the pylab interface is very nice if you're familiar with matlab.
Cheers,
Nathan
On Jul 4, 2012, at 2:07 PM, Tyler Berg wrote:
Hi,
I am trying to plot a power spectrum from some Enzo data. Trying to figure out how to do this, I stumbled across this post:
http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2012-March/00242...
I followed the instructions here, extracting a covering grid and using numpy.fft. My question now is, how do I create the plot? I've tried using PlotCollection, but I get an 'unhashable type' error when I plug in my Fourier transformed data as one of the inputs to the add_profile_sphere command. So how would I go about plotting this? Is there an alternate way to use PlotCollection, or should I be using something else altogether?
Thanks in advance, Tyler Berg !DSPAM:10175,4ff4b0ae19648653422059! _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
!DSPAM:10175,4ff4b0ae19648653422059!
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Nathan Goldbaum -
Tyler Berg