def plot( self, font_fname=None ) : plt = Gnuplot() plt.open() plt.xlabel( "Time (s)" ) plt.ylabel( "$$$ spent (estimate)" ) plt.set_style( "linespoints" ) plots = [] labels = [] for i in range( self.nplayers ) : player = self.kwr.players[i] if not player.is_player() : continue pair = self.split( self.spents[ i ] ) if not pair : continue ts, costs = pair plt.plot( ts, costs ) labels.append( sanitize_name( player, xor=True ) ) plt.legend( labels ) plt.show() plt.close()