<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 6:53 PM, Stephanie Tonnesen <span dir="ltr"><<a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>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:<br><br></div>im = plt.imshow(np.array(frbd['density'])*np.array(frbt['t_soundnoA'])*np.array(frbA['gacc_z']))<br></div>plt.colorbar(im)<br></div>plt.savefig('blahblahname.png')<br></div></div></div></div></blockquote><div><br></div><div>form matpotlb.colors import LogNorm</div><div><br></div><div><div><div>im = plt.imshow(np.array(frbd['density'])*np.array(frbt['t_soundnoA'])*np.array(frbA['gacc_z']), norm=LogNorm())<br></div>plt.colorbar(im)<br></div>plt.savefig('blahblahname.png')<br></div><div><br></div><div>There's also SymLogNorm if your colorbar contains negative values.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><br></div>and after a bit of a search have no idea what commands will actually apply to imshow to get the log colorbar.  <br><br></div>Thanks!<span class=""><font color="#888888"><br></font></span></div><span class=""><font color="#888888">Stephanie<br></font></span></div><div class="gmail_extra"><span class=""><br clear="all"><div><div><div dir="ltr"><div><div><div><font face="garamond,serif">--<br>Dr. Stephanie Tonnesen<br></font></div><font face="garamond,serif">Alvin E. Nashman Postdoctoral Fellow<br></font></div><font face="garamond,serif">Carnegie Observatories, Pasadena, CA<br></font></div><font face="garamond,serif"><a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a><br></font></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Wed, Nov 11, 2015 at 1:03 PM, Yuan Li <span dir="ltr"><<a href="mailto:bear0980@gmail.com" target="_blank">bear0980@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Stephanie,<br><br>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.<div><br></div><div>Cheers,</div><div><div>Yuan</div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Nov 11, 2015 at 3:27 PM, Stephanie Tonnesen <span dir="ltr"><<a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div><div><div>Hi yt-users,<br><br></div>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:<br><br></div>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.  <br><br></div>2)  Can I create a projection plot, or map along a line of sight, of the peak value of a variable?  <br><br></div>Thanks for any help,<br></div>Stephanie<br><br clear="all"><div><div><div><div><div><div><div><div><div><div dir="ltr"><div><div><div><font face="garamond,serif">--<br>Dr. Stephanie Tonnesen<br></font></div><font face="garamond,serif">Alvin E. Nashman Postdoctoral Fellow<br></font></div><font face="garamond,serif">Carnegie Observatories, Pasadena, CA<br></font></div><font face="garamond,serif"><a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a><br></font></div></div></div>
</div></div></div></div></div></div></div></div>
<br></div></div><span>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></span></blockquote></div><br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>