(self, f, lfilter=None, **kargs)
return g
Uses a function that returns a label and a value for this label, then plots all the values label by label
Uses a function that returns a label and a value for this label, then plots all the values label by label
Uses a function that returns a label and a value for this label then plots all the values label by label
def multiplot(self, f, lfilter=None, **kargs):
        """Uses a function that returns a label and a value for this label, then plots all the values label by label"""
        g=Gnuplot.Gnuplot()
        l = self.res
        if lfilter is not None:
            l = filter(lfilter, l)

        d={}
        for e in l:
            k,v = f(e)
            if k in d:
                d[k].append(v)
            else:
                d[k] = [v]
        data=[]
        for k in d:
            data.append(Gnuplot.Data(d[k], title=k, **kargs))

        g.plot(*data)
        return g
def multiplot ( self , f , lfilter = None , * * kargs ) : g = Gnuplot . Gnuplot ( ) l = self . res if lfilter is not None : l = filter ( lfilter , l ) d = { } for e in l : k , v = f ( e ) if k in d : d [ k ] . append ( v ) else : d [ k ] = [ v ] data = [ ] for k in d : data . append ( Gnuplot . Data ( d [ k ] , title = k , * * kargs ) ) g . plot ( * data ) return g