Le mercredi 05 mars 2008 à 15:19 +0100, Lorenzo Isella a écrit : > p.hold(False) [...] > p.plot(x,y,"ko") > p.axvline(30.) > > My problem is that the second figure shows only the vertical line. If > I remove all the lines for the first plot (i.e. the one without > axvline), then the remaining plot is perfectly ok. > (1) Has anyone experienced the same problem/bug in matplotlib? > (2) Any idea of a possible fix?
Since you turn hold to False, every new line that is added to axes (with plot() or axvline()) deletes the existing lines. Removing p.hold(False) may result in what you want. -- Fabrice Silva <[EMAIL PROTECTED]> LMA UPR CNRS 7051 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users