[Matplotlib-users] [matplotlib-users] Set the color of a plot in argument's function

2012-02-02 Thread Fabien Lafont
I don't manage to put the color of my plot in the argument' list function. Example: def function(color): plot(x,y,'.', color, label = "this is my curve") function('r') even if I put function(" 'r' ") it doesn't work. Any idea? -

Re: [Matplotlib-users] [matplotlib-users] Set the color of a plot in argument's function

2012-02-02 Thread Daryl Herzmann
On Thu, Feb 2, 2012 at 8:52 AM, Fabien Lafont wrote: > I don't manage to put the color of my plot in the argument' list function. > > Example: > > def function(color): > >      plot(x,y,'.', color, label = "this is my curve") > > > function('r') > > even if I put function(" 'r' ")  it doesn't work

Re: [Matplotlib-users] [matplotlib-users] Set the color of a plot in argument's function

2012-02-02 Thread Fabien Lafont
Thanks Daryl, it works! 2012/2/2 Daryl Herzmann : > On Thu, Feb 2, 2012 at 8:52 AM, Fabien Lafont wrote: >> I don't manage to put the color of my plot in the argument' list function. >> >> Example: >> >> def function(color): >> >>      plot(x,y,'.', color, label = "this is my curve") >> >> >> fun