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?
-
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
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