[yt-users] Log scale

Sam Skillman samskillman at gmail.com
Thu Jun 9 08:05:06 PDT 2011


Hi Elizabeth,

You should be able to create a derived field (
http://yt.enzotools.org/doc/advanced/creating_derived_quantities.html) 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.

Sam

On Thu, Jun 9, 2011 at 10:57 AM, Elizabeth Tasker <taskere at mcmaster.ca>wrote:

> Hi,
>
> I'm doing slices of the potential field:
>
> p = pc.add_slice("PotentialField", 2)
> pc.set_width(10, 'kpc')
> p.set_zlim(-4500,-2500)
> p.modify["grids"]()
>
> Is there a way to force the scale to the logarithmic like for density
> slices?
>
> thanks,
>
> Elizabeth
> _______________________________________________
> 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/20110609/82a75532/attachment.html>


More information about the yt-users mailing list