[yt-dev] Issue #676: set_center does not do the right thing with a three-tuple (yt_analysis/yt)

Matthew Turk issues-reply at bitbucket.org
Wed Oct 16 23:59:41 PDT 2013


New issue 676: set_center does not do the right thing with a three-tuple
https://bitbucket.org/yt_analysis/yt/issue/676/set_center-does-not-do-the-right-thing

Matthew Turk:

If I create a plot window and set the center to a 3-length tuple using set_center, it takes the first two items from the tuple and does not correctly set the center.


```
#!python

p1 = ProjectionPlot(pf, "y", "Density")
center = halo.center_of_mass()
p1.set_center( center )
p1.show()
```

This takes items 0 and 1 from the center of mass, but it should be taking items 0 and 2.





More information about the yt-dev mailing list