Hi Elizabeth,<div><br></div><div>You should be able to create a derived field (<a href="http://yt.enzotools.org/doc/advanced/creating_derived_quantities.html">http://yt.enzotools.org/doc/advanced/creating_derived_quantities.html</a>) that is not negative and then it should show up as logarithmic.  Maybe make an PotentialFieldMagnitude quantity using the absolute magnitude or something similar.  You may need to specify the take_log=True keyword in the add_quantity call, but True should be the default keyword argument.</div>

<div><br></div><div>Sam</div><div><br><div class="gmail_quote">On Thu, Jun 9, 2011 at 10:57 AM, Elizabeth Tasker <span dir="ltr"><<a href="mailto:taskere@mcmaster.ca">taskere@mcmaster.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
I'm doing slices of the potential field:<br>
<br>
p = pc.add_slice("PotentialField", 2)<br>
pc.set_width(10, 'kpc')<br>
p.set_zlim(-4500,-2500)<br>
p.modify["grids"]()<br>
<br>
Is there a way to force the scale to the logarithmic like for density slices?<br>
<br>
thanks,<br>
<br>
Elizabeth<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br></div>