On Wednesday, May 20, 2015, Max Katz <maxpkatz@gmail.com> wrote:
Just want to add that this functionality is something I recently found a need for. Is it perhaps possible to generate the camera object first, rotate it, and then take a slice?
We were talking about slices and projections earlier in this thread, there is no camera in those cases. The problem there is that the plot layouts are hard-coded to some degree and someone would need to generalize the layout logic to handle horizontal colorbars. It's not *too* complicated, but care needs to be taken to ensure plots look good in as many cases as possible. As with most improvements we want to make, we're limited by contributor time.
Just in case you're interested in hacking on yt internals, the layout code in question is here:
This is called when we set up each individual plot in one of the image plot containers defined in yt/visualization/plot_window.py.
Axis-aligned slices and projections need to be locked to the coordinate axes, but off-axis slices and projections as well as volume renderings allow arbitrary rotation of the image plane. This works right now.
While it would be nice if yt's plotting code could make "nice" plots out of the box for any kind of data thrown at it, that is not the case right now. That's one of the reasons why we expose everything you need to make a custom plot based on the image buffers returned by a FixedResolutionBuffer object.