[yt-users] line callback

Luigi Iapichino luigi at uni-heidelberg.de
Tue Aug 23 02:15:22 PDT 2011


Dear all,

I would like to overplot a line to a slice of mine. I use the line callback, 
for example with the following sintax:

p.modify["line"]((0,639),(30,30))

if I have well understood, the two pairs of numbers are pixel-based 
coordinates. I have a few questions:

1) where is the range of these number set (i.e., the image size in pixel), and 
how can I eventually modify it?

2) Is it any simple way to define the begin and end points of a line in other 
coordinates? Code coordinates from 0 to 1 would be enough;

3) How do I modify the features of the line (e.g. thickness, color)?

Thanks in advance,

  Luigi

-- 

---------------------------------------------------------------

Luigi Iapichino
Zentrum für Astronomie der Universität Heidelberg
Institut für Theoretische Astrophysik
Albert-Ueberle-Str. 2, D-69120 Heidelberg, Germany
Tel: +49 6221 548983, Fax: +49 6221 544221
e-mail: luigi at uni-heidelberg.de
URL: http://www.ita.uni-heidelberg.de/~luigi/



More information about the yt-users mailing list