From: Jean-Baptiste C. <Jea...@de...> - 2004-03-15 10:02:13
|
It workls great now ! Thanks Jean-Baptiste On Sun, 14 Mar 2004 13:26:20 -0600 John Hunter <jdh...@ni...> wrote: > >>>>> "Jean-Baptiste" =3D=3D Jean-Baptiste Cazier <Jean-Baptiste.cazier@d= ecode.is> writes: >=20 > lh=3Dlen(h.haplist) > Xrange=3D[map[m] for m in [y for x,y in h.haplist]] > Yrange=3D[-math.log10(h.pval) for i in range(lh)] > line=3Dcanvas.figure.axes[0].plot(Xrange, Yrange, symbol) > line.set_visible(Plot.False) >=20 > Jean-Baptiste> Any idea ? >=20 > plot always return *a list* of lines. So you need to do >=20 > lines =3D canvas.figure.axes[0].plot(Xrange, Yrange, symbol) > lines[0].set_visible(Plot.False) # get the first element of the list >=20 > JDH --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |