Thanks,Hi again--Does anyone know how to get the coordinates that the plot window uses (after re-centering and zooming) and the coordinates of the annotate_image_line to agree?
Sorry, my last email didn't actually have a question in it.
d.On Mon, Aug 12, 2013 at 12:14 PM, David Collins <dcollins4096@gmail.com> wrote:
Hi, everybody--I'm having trouble getting plot_window coordinages and annotate_image_line coordinates to agree. I have a small region that I'm trying to annotate with lines, and zoom in on. I'm having trouble getting my coordinates working together.
If I do
proj = oober.pf.h.proj(ax,'Density',source=source)
pw = proj.to_pw(center=proj_center,origin='domain' )pw.zoom( 1/size)I have the object centered on the plot and zoomed appropriately. If I do
proj = oober.pf.h.proj(ax,'Density',source=source)
pw = proj.to_pw()
pw.annotate_image_line(p1, p2, data_coords=True)the lines show up in the position I expect relative to my object. However, if I include both the re-centering in to_pw and the call to annotate_image_line, the line doesn't show up where I want relative to the object. If I skip the data_coords or origin argument it doesn't seem to help. I've dug around the docs and source but haven't sorted how to make the plot window coordinages and annotate_image_line coordinates agree.
Thanks!
d.
---- Sent from a computer.
---- Sent from a computer.
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org