nschloe/perfplot

support multiple args

Closed this issue · 3 comments

Could you add support for multiple arguments like lambda *args: ...

perfplot.show(
        setup=lambda n: numpy.random.random_sample(size=(n, 128)),
        kernels=[
            lambda x, y: x + y
            ],
        n_range=[2**k for k in range(15)],
        xlabel='len(a)'
        )

TypeError: () missing 1 required positional argument: 'y'

Ok, I can broadcast all args to just x

Indeed, that's what I'm doing as well.

Indeed, that's what I'm doing as well.

I have asked a related question on SO.