[yt-users] Two questions related to projections

Stephanie Tonnesen stonnes at gmail.com
Wed Nov 11 16:53:45 PST 2015


Thank you two!  These seem to be working perfectly!  I now have what I
think must be a really simple question...how do I get my colorbar to be
evenly spaced in log?  I am typing in:

im =
plt.imshow(np.array(frbd['density'])*np.array(frbt['t_soundnoA'])*np.array(frbA['gacc_z']))
plt.colorbar(im)
plt.savefig('blahblahname.png')

and after a bit of a search have no idea what commands will actually apply
to imshow to get the log colorbar.

Thanks!
Stephanie

--
Dr. Stephanie Tonnesen
Alvin E. Nashman Postdoctoral Fellow
Carnegie Observatories, Pasadena, CA
stonnes at gmail.com

On Wed, Nov 11, 2015 at 1:03 PM, Yuan Li <bear0980 at gmail.com> wrote:

> Hi Stephanie,
>
> For the first one, I have made composite images using multiple
> projections. I used the FixedResolutionBuffer to get the numpy array for
> each projection, and combined them using imshow.
>
> Cheers,
> Yuan
>
> On Wed, Nov 11, 2015 at 3:27 PM, Stephanie Tonnesen <stonnes at gmail.com>
> wrote:
>
>> Hi yt-users,
>>
>> So I have two questions related to projections.  What I want to finally
>> end up with is a projection-type figure that for any point in the
>> projection gives me the value: (column density) * (total sound crossing
>> time) * (peak gravitational acceleration).  I know how to make projections
>> of column density and total sound crossing time, but am stuck otherwise.
>> So, my questions:
>>
>> 1)  Can I combine two projection plots after I make them? I do not want
>> the projection of column density * sound crossing time for every cell, I
>> want to multiply the two final outputs.
>>
>> 2)  Can I create a projection plot, or map along a line of sight, of the
>> peak value of a variable?
>>
>> Thanks for any help,
>> Stephanie
>>
>> --
>> Dr. Stephanie Tonnesen
>> Alvin E. Nashman Postdoctoral Fellow
>> Carnegie Observatories, Pasadena, CA
>> stonnes at gmail.com
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20151111/07e51ba6/attachment.html>


More information about the yt-users mailing list