[yt-dev] Issue #742: Projection pixelization is screwy in unitrefactor (yt_analysis/yt)

Nathan Goldbaum issues-reply at bitbucket.org
Tue Dec 3 15:20:05 PST 2013


New issue 742: Projection pixelization is screwy in unitrefactor
https://bitbucket.org/yt_analysis/yt/issue/742/projection-pixelization-is-screwy-in

Nathan Goldbaum:

The following script:


```
#!python

%matplotlib inline
from yt.mods import *
pf = load('Enzo_64/DD0043/data0043')
pp = ProjectionPlot(pf, 0, 'density')
pp.save()
print pp._frb['density']
```

outputs the following:


```
#!python

[[ 0.00113812  0.00113812  0.00113812 ...,  0.          0.          0.        ]
 [ 0.00113812  0.00113812  0.00113812 ...,  0.          0.          0.        ]
 [ 0.00113812  0.00113812  0.00113812 ...,  0.          0.          0.        ]
 ..., 
 [ 0.          0.          0.         ...,  0.          0.          0.        ]
 [ 0.          0.          0.         ...,  0.          0.          0.        ]
 [ 0.          0.          0.         ...,  0.          0.          0.        ]] g/cm**2
```

and this image: http://i.imgur.com/TSWUCge.png

The issue has to do with the `px`, `py`, `pdx`, and `pdy` fields and happens at the level of `FixedResolutionBuffer` rather than in `PlotWindow`.

Responsible: MatthewTurk



More information about the yt-dev mailing list