Issue #1009: Streamline plot callback may be transposed (yt_analysis/yt)

New issue 1009: Streamline plot callback may be transposed https://bitbucket.org/yt_analysis/yt/issue/1009/streamline-plot-callback-may... Matthew Turk: In debugging the streamline plot callback, I've run into something odd. I'm hoping @jwise77 , who wrote it originally, might be able to chime in. It's not clear to me that we are doing "the right thing" since we have an image plot which is using `origin='lower'` and a streamline plot that is not. Additionally, the x, y ordering requires us *not* to transpose the resultant image buffers to get the right shape of our array, if we have a non-unitary input buffer. In short, I think the inputs may be transposed but shouldn't be, and I'm not sure the streamplot is right. Responsible: MatthewTurk _______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org

Hi Matt, I've been thinking about the need for us to create some special verification datasets where we know what the right answer is, so we can test the various routines, like the streamline plot, to see if we get the expected plot. These should be conceptually simple datasets (like a left-handed vortex of vectors) where we know what the result should look like. I had tried something earlier with a volume render dataset when I was playing with left/right handedness. In that case, I had simply made my dataset in NumPy as a cubic array and then fed it into yt -- that seems to be an easy route to testing these things. Mike On Mon, Mar 30, 2015 at 6:06 PM, Matthew Turk <issues-reply@bitbucket.org> wrote:
New issue 1009: Streamline plot callback may be transposed
https://bitbucket.org/yt_analysis/yt/issue/1009/streamline-plot-callback-may...
Matthew Turk:
In debugging the streamline plot callback, I've run into something odd. I'm hoping @jwise77 , who wrote it originally, might be able to chime in.
It's not clear to me that we are doing "the right thing" since we have an image plot which is using `origin='lower'` and a streamline plot that is not. Additionally, the x, y ordering requires us *not* to transpose the resultant image buffers to get the right shape of our array, if we have a non-unitary input buffer.
In short, I think the inputs may be transposed but shouldn't be, and I'm not sure the streamplot is right.
Responsible: MatthewTurk _______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
-- Michael Zingale Associate Professor Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800 *phone*: 631-632-8225 *e-mail*: Michael.Zingale@stonybrook.edu *web*: http://www.astro.sunysb.edu/mzingale _______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org

Hi Mike, This is a great idea. Something non-symmetric with very simple analytic results would be perfect, particularly for this application ... I'm going through and adding answer tests for callbacks now, and would be happy to add this on as well. We could start with something just going slightly off-diagonal, which should be enough to demonstrate it's correct. On Mon, Mar 30, 2015 at 5:16 PM, Michael Zingale <michael.zingale@stonybrook.edu> wrote:
Hi Matt, I've been thinking about the need for us to create some special verification datasets where we know what the right answer is, so we can test the various routines, like the streamline plot, to see if we get the expected plot. These should be conceptually simple datasets (like a left-handed vortex of vectors) where we know what the result should look like.
I had tried something earlier with a volume render dataset when I was playing with left/right handedness. In that case, I had simply made my dataset in NumPy as a cubic array and then fed it into yt -- that seems to be an easy route to testing these things.
Mike
On Mon, Mar 30, 2015 at 6:06 PM, Matthew Turk <issues-reply@bitbucket.org> wrote:
New issue 1009: Streamline plot callback may be transposed
https://bitbucket.org/yt_analysis/yt/issue/1009/streamline-plot-callback-may...
Matthew Turk:
In debugging the streamline plot callback, I've run into something odd. I'm hoping @jwise77 , who wrote it originally, might be able to chime in.
It's not clear to me that we are doing "the right thing" since we have an image plot which is using `origin='lower'` and a streamline plot that is not. Additionally, the x, y ordering requires us *not* to transpose the resultant image buffers to get the right shape of our array, if we have a non-unitary input buffer.
In short, I think the inputs may be transposed but shouldn't be, and I'm not sure the streamplot is right.
Responsible: MatthewTurk _______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
-- Michael Zingale Associate Professor
Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800 phone: 631-632-8225 e-mail: Michael.Zingale@stonybrook.edu web: http://www.astro.sunysb.edu/mzingale
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
participants (3)
-
Matthew Turk
-
Matthew Turk
-
Michael Zingale