Mark Bakker wrote:
> Can we set the markerspacing in mpl?
> 
> If I do
> 
> plot( linspace(0,10,100), 'o' )

You can try the following approach: First plot the line and then plot 
the markers separately (and set colors).

x = linspace(0,10,100)
y = x
plot(x, y, '-')
plot(x[::10], y[::10], linestyle='', marker='o')

Manuel

> I get 100 markers. What if I want to plot every tenth marker? Or better
> even, what if I want to have a certain spacing between markers.
> 
> I know how to work around this, of course (just plot every tenth point), but
> I was looking for a keyword argument or so. I thought that would exist and
> be useful.
> 
> Sorry to flood the list with questions this week.
> 
> Mark
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to