<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 3:50 PM, Suoqing JI <span dir="ltr"><<a href="mailto:suoqing@physics.ucsb.edu" target="_blank">suoqing@physics.ucsb.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>I understand that typically the negative values would appear as white color on a log slice plot. However, if I directly plot the fields that are generically defined in FLASH, the negative values DO appear correctly. For example, the velx field: <a href="http://pbrd.co/1jz3iqR" target="_blank">http://pbrd.co/1jz3iqR</a>. </div>

</div></blockquote><div><br></div><div>Yup - that plot is on a linear scale.  I believe the FLASH frontend has it explicitly defined *not* to log-scale velx.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div><br></div><div>But for any derived fields, for example, defining velx1 = 1.*velx, the negative values appear white again: <a href="http://pbrd.co/1jz4oD8" target="_blank">http://pbrd.co/1jz4oD8</a>. </div>

</div></blockquote><div><br></div><div>That happens because the default for a derived field is to log scale the field in plots.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div><br></div><div>So, is there anyway to show both positive and negative values on a log slice plot for derived fields (I’m using YT2)?</div><div><br></div></div></blockquote><div><br>
</div>
<div>Nope.  In general you can't show negative values on a log-scaled plot.</div><div><br></div><div>You could plot the absolute value of a field but then you aren't really plotting the field as such.</div><div><br>

</div><div>What is the visualization goal you are trying to accomplish here?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">

<div></div><div>Thanks!</div><div><br></div><div>Best wishes,</div><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">

<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">

<div>--</div><div>Suoqing JI</div><div>Ph.D Student</div><div>Department of Physics</div><div>University of California, Santa Barbara</div><div>CA 93106, USA</div></div></div></div></div>
</div>
<br></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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>