Using 'plot(*args, **kwargs)' does seem to work just fine.
Thanks to all for their suggestions.
Stephen
--
http://mail.python.org/mailman/listinfo/python-list
On 5 Aug 2005 08:34:32 -0700, [EMAIL PROTECTED] wrote:
>Is there a better way of doing this so that I don't have to go through
>every permutation of possible arguments (the example here from the
>matplotlib 'plot' function):
>
>def makeplot(self, xvalues, yvalues, linecolor='', linewidth=''):
>
> "stephen" == stephen <[EMAIL PROTECTED]> writes:
stephen> Is there a better way of doing this so that I don't have
stephen> to go through every permutation of possible arguments
stephen> (the example here from the matplotlib 'plot' function):
You can make linecolor=None and lin
On 5 Aug 2005 08:34:32 -0700
[EMAIL PROTECTED] wrote:
> Is there a better way of doing this so that I don't have to go through
> every permutation of possible arguments (the example here from the
> matplotlib 'plot' function):
>
> def makeplot(self, xvalues, yvalues, linecolor='', linewidth=''):
[EMAIL PROTECTED] wrote:
> Is there a better way of doing this so that I don't have to go through
> every permutation of possible arguments (the example here from the
> matplotlib 'plot' function):
Usually, you would just make the defaults for linecolor and linewidth
the same as the defaults for
Is there a better way of doing this so that I don't have to go through
every permutation of possible arguments (the example here from the
matplotlib 'plot' function):
def makeplot(self, xvalues, yvalues, linecolor='', linewidth=''):
if linecolor and linewidth:
plot(xvalues, yvalues, li