<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Sorry for replying to an old thread, but I want to note that you need to instantiate the hierarchy before messing with field_info</div><div><br></div><div>Something like:</div><div><br></div><div>pf = load(Filename)</div><div>pf.h</div><div>pf.field_info["Density"].take_log=False</div><div>pc = PlotCollection(pf)<br>pc.add_slice('Density',0)<br>etc...</div><div><br></div><div>should work.</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Nathan Goldbaum<br>Graduate Student<br>Astronomy & Astrophysics, UCSC<br><a href="mailto:goldbaum@ucolick.org">goldbaum@ucolick.org</a><br>http://www.ucolick.org/~goldbaum</div></span></div></span></div></span></span>
</div>
<br><div><div>On Jan 17, 2012, at 6:16 PM, Andrew Myers wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi John,<br><br>I don't know if there's a better way, but I usually do this by overriding the default in my script before making my plot, like so:<br><br><div style="text-align:left;margin-left:40px">pf.field_info["density"].take_log=False<br>
</div>           pc = PlotCollection(pf)<br>           p = pc.add_ray([pf.domain_left_edge[0],0,0], [pf.domain_right_edge[0],0,0], "density")<br>           etc...<br><br>-Andrew Myers<br><br><div class="gmail_quote">
On Tue, Jan 17, 2012 at 3:58 PM, John ZuHone <span dir="ltr"><<a href="mailto:jzuhone@milkyway.gsfc.nasa.gov">jzuhone@milkyway.gsfc.nasa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
A rather simple question that I should probably already know the answer to, but here goes:<br>
<br>
Many fields are logged by default, which is as it should be. However, sometimes the range of the variable is not very large and a log plot just doesn't make a lot of sense.<br>
<br>
In a slice or a projection plot in a PlotCollection, how does one suppress (or, in the opposite case, enable) the logging of the plotted variable before saving or displaying the plot?<br>
<br>
I'm hoping there's a semi-easy way to do this without setting take_log in the field definition, but I've not come across it  yet.<br>
<br>
Best,<br>
<br>
John<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br>


!DSPAM:10175,4f162ba2220417002742!
_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br><br><br>!DSPAM:10175,4f162ba2220417002742!<br></blockquote></div><br></body></html>