Andrea, I believe that if you find ONE good visual aspect ratio, 
according to your figure size, that should do. Yo know your
figsize, and if you know all in your axes([bot,lft,wid, height]), that 
this visual ratio should be easy to fix.

BTW, I did not understand why do you play with your "angle" = 
arctan(...), then compute sin and cos, etc. Two issues.
1. You are wasting your time.
2. If your data is a functional sequence, with x growing, its OK, but 
for ANY data you may get zero in the denominator, and your arctan will 
locally explode, producing holes in the plotted data. Use arctan2. Or 
rather, don't compute angles at all.

Concerning 1.
If you compute dx = xhigh-xlow; dy=yhigh-ylow;
then the parameters of a normal offset are (nx,ny) = (-dy,dx), 
appropriately normalized, and that's all.

All the best.

Jerzy


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to