[yt-dev] axes units behaving correctly?

Nathan Goldbaum nathan12343 at gmail.com
Thu Oct 2 12:28:45 PDT 2014


That last plot looks like you're exposing a bug to me.  Can you file an
issue?

On Thu, Oct 2, 2014 at 12:26 PM, Chris Malone <chris.m.malone at gmail.com>
wrote:

> All,
>
> I'm seeing some behavior[1] with units of axes that seems
> counter-intuitive, but maybe I need to change my intuition.
>
> In particular, if one makes a slice plot, but specifies the width of the
> plot in units of 'code_length' - for example, from using domain_right_edge
> - the units aren't properly converted to whatever was set as
> `ds.length_unit`.  Is this working as intended?  Are users expected to
> manually apply `.in_cgs()` to such items that have code_length?  Naively, I
> would expect that when units are displayed, if they are code_* units, they
> should be converted to whatever is declared in
> `ds._set_code_unit_attributes`.
>
>
> [1]
> http://nbviewer.ipython.org/urls/dl.dropbox.com/s/bf62wclpjduvlit/example.ipynb?dl=0
>
> Chris
>
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20141002/c80c9f54/attachment.html>


More information about the yt-dev mailing list