pyplot.plotfile - bug report and extension proposal

Hello all,

first of all I want to thank the developers for the plotfile-function.

Nevertheless I would like to report a bug of the function and propose addional
functionality. I added a patch including the following changes:
- circumvent the NameError in the case of len(cols)==1 (N is not defined)
- using fig = gcf() instead of fig = figure() to supress opening a new figure
and therewith allowing to use the user preferred figure
- added keyword argument 'names' to set x/ylabels in the case there are no
names in the csv-file
- changed the accordingly

I would be happy, if this is helpful to others too.

regards Matthias

plotfile_extend.patch (3.85 KB)