From: Philipp W. <ma...@ph...> - 2004-08-09 20:46:38
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo matplitlib userse, when using fill_over, it does not draw exactly at one line but with a slightly aberration. This especially is horrible when using a low resolution: The following program draws a nice sinus-curve and fills all values above 0.5. But when reducing the resolution (i.e. set the variable res to "1") fill_over generates weird fillings. from matplotlib.matlab import * from matplotlib.helpers import * res=0.1 # < 0.1 -> nice resolution # > 1 -> weird fillings x=[] y=[] x=arange(0,20,res) for i in x: y.append(sin(i)) r=axes() r.plot(x,y); fill_over(r,x,y, 0.5, '#0000FF',over=True) show() -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFBF+JHQz7EsHuNmkoRAg86AJkBLwXFD+ShYKh/k9p7ZnRLbJQarACghr7U 3fjj7ejBOl/XxB854CgfYD0= =zPc3 -----END PGP SIGNATURE----- |