<p dir="ltr"><br>
On Apr 1, 2014 4:42 PM, "Cameron Hummels" <<a href="mailto:chummels@gmail.com">chummels@gmail.com</a>> wrote:<br>
><br>
> Sorry about that--I wasn't totally clear in what I wanted to get out of this.  <br>
><br>
> I wanted the contours in test4 to be identical to the contours in test3, since they're both created using annotate_contour() with the same data_source.  Yes, there are contours in test4.png, but they are significantly different from those in test3.  Does this make sense?<br>

><br>
> If you look at the contours for test1 and test2, they match, despite the fact the underlying data being plotted change.<br>
></p>
<p dir="ltr">Ah, I understand now.</p>
<p dir="ltr">So, two things. I have used real data (much easier than random) and the contours do not match as well as I would like. However, they cannot match exactly - you can see this in the random pf by looking at how the off axis projections are covered with what look like stencil outlines of cells. These won't go away, regardless of what we do with the off six projection, because of how the data is created. The on-axis is produced by pixelizing a sparse grid of points, which is then fed into a Delaunay triangulation before contouring the result. The off axis is already densely packed, which means the interpolation process becomes nearest neighbor.</p>

<p dir="ltr">As for the other issue, I believe there is a transposition error combined with the fact that linearly interpolating inside a cell produces different results during the projecting process. I think you had proposed an adjustment to the axis order for OAP objects; did it make it in?</p>

<p dir="ltr">Matt</p>
<p dir="ltr">><br>
> On Tue, Apr 1, 2014 at 1:32 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br>
>><br>
>> Hi Cameron,<br>
>><br>
>> On Tue, Apr 1, 2014 at 4:11 PM, Cameron Hummels <<a href="mailto:chummels@gmail.com">chummels@gmail.com</a>> wrote:<br>
>> > Hey everyone,<br>
>> ><br>
>> > I have an unusual problem that I cannot seem to work out.  I'm trying to<br>
>> > generate a set of contours on an OffAxisProjectionPlot using the underlying<br>
>> > data from another OffAxisProjectionPlot (i.e. a different data_source).  I<br>
>> > can get this working A-OK when I just use the ProjectionPlot class, but when<br>
>> > I attempt to use the OffAxisProjectionPlot, I encounter problems.<br>
>> ><br>
>> > I made a small script demonstrating this problem, as well as the success<br>
>> > when this method is applied to a ProjectionPlot object.  Any suggestions?<br>
>> ><br>
>> > Note, this is yt 2.x dev.  Here is the script:<br>
>> ><br>
>> > <a href="http://paste.yt-project.org/show/4459/">http://paste.yt-project.org/show/4459/</a><br>
>> ><br>
>> > Cameron<br>
>><br>
>> My reading of your script is that you want "test4.png" to have<br>
>> contours on it, right?  I just ran this script on 61e6b84f875c, which<br>
>> is near tip of 2.x, and I got this image for test4.png:<br>
>><br>
>> <a href="http://i.imgur.com/hfycSN9.png">http://i.imgur.com/hfycSN9.png</a><br>
>><br>
>> Is this not what you wanted?<br>
>><br>
>> -Matt<br>
>><br>
>> ><br>
>> > --<br>
>> > Cameron Hummels<br>
>> > Postdoctoral Researcher<br>
>> > Steward Observatory<br>
>> > University of Arizona<br>
>> > <a href="http://chummels.org">http://chummels.org</a><br>
>> ><br>
>> > _______________________________________________<br>
>> > yt-users mailing list<br>
>> > <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> > <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>> ><br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
><br>
><br>
><br>
> -- <br>
> Cameron Hummels<br>
> Postdoctoral Researcher<br>
> Steward Observatory<br>
> University of Arizona<br>
> <a href="http://chummels.org">http://chummels.org</a><br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
</p>