Legend Markers

Hi group,

I’m trying to plot certain data sets with different markers and line styles, and to add legends to distinguish between them. I’m using matplotlib through pylab.

My concern is that the added legend uses 4 markers and the line style is barely visible. Is there any way to make it use only 2 markers (some what in the way matlab does it)?

thanks!

best,
Rodrigo

···


Rodrigo López Negrete
http://muon.blogdns.org/~rush/

Try legend(..., numpoints=2)

···

On Thursday 12 July 2007 6:44:53 pm Rodrigo López Negrete de la Fuente wrote:

Hi group,

I'm trying to plot certain data sets with different markers and line
styles, and to add legends to distinguish between them. I'm using
matplotlib through pylab.

My concern is that the added legend uses 4 markers and the line style is
barely visible. Is there any way to make it use only 2 markers (some what
in the way matlab does it)?