<html><body>
<p>New issue 1214: vector annotation of off-axis plot generates inconsistent result <a href="https://bitbucket.org/yt_analysis/yt/issues/1214/vector-annotation-of-off-axis-plot">https://bitbucket.org/yt_analysis/yt/issues/1214/vector-annotation-of-off-axis-plot</a></p>
<p>Suoqing Ji:</p>
<p>Test dataset is [here](<a href="https://dl.dropboxusercontent.com/u/83265784/data.npy">https://dl.dropboxusercontent.com/u/83265784/data.npy</a>)</p>
<p>Test script:</p>
<p>``` #!python</p>
<p>import yt import numpy as np</p>
<p>dims = (200,200,200)</p>
<p>x = np.load('data.npy')</p>
<p>field1 = x[:,2].reshape(dims, order="F") field2 = x[:,1].reshape(dims, order="F") field3 = x[:,0].reshape(dims, order="F")</p>
<p>data = dict(velocity_x = field1,</p>
<pre>velocity_y = field2,
velocity_z = field3)</pre>
<p>bbox = np.array([[-100, 99], [-100, 99], [-100, 99]])</p>
<p>ds = yt.load_uniform_grid(data, dims, ‘km’, bbox=bbox, nprocs=1)</p>
<p>L = [0, -1, 0] north_vector = [0, 0, 1] slc1 = yt.OffAxisSlicePlot(ds, L, ‘velocity_x’, center=[0,0,0], width=(180,'km'), north_vector=north_vector) slc1.annotate_velocity(factor=40, normalize=True) slc1.save()</p>
<p>L = [0, 1, 0] north_vector = [0, 0, 1] slc2 = yt.SlicePlot(ds, L, ‘velocity_x’, center=[0,0,0], width=(180,'km'), north_vector=north_vector) slc2.annotate_velocity(factor=40, normalize=True) slc2.save() ```</p>
<p>On-axis plot:</p>
<p>![UniformGridData_Slice_y_velocity_x.png](<a href="https://bitbucket.org/repo/BXbAb/images/3764369440-UniformGridData_Slice_y_velocity_x.png">https://bitbucket.org/repo/BXbAb/images/3764369440-UniformGridData_Slice_y_velocity_x.png</a>)</p>
<p>Off-axis plot:</p>
<p>![UniformGridData_OffAxisSlice_velocity_x.png](<a href="https://bitbucket.org/repo/BXbAb/images/829906186-UniformGridData_OffAxisSlice_velocity_x.png">https://bitbucket.org/repo/BXbAb/images/829906186-UniformGridData_OffAxisSlice_velocity_x.png</a>)</p>

<img src="http://link.bitbucket.org/wf/open?upn=JlBWjyZTyKwhM1rBKe-2BcAdFPwdECN4PBooLGVSVl7EKSjcAtJV2o60np22ogux49Hw0w4pKvSO9oW3HYSqXy3ZVweYLts2zmTf4YMkM-2BInYNj-2Bgf2nnHLpfhdICGQrrR8jd8Mc9aKJiiJImptxziWciB6iaKinpnaxGQzLeWQ3SDN5NakfJqJmHpysSGWfPpI2RwqFkl-2BSDOcMYs1ia0LCLu7CZ3eFUyC-2FJ0m1Qiznk-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>