MCPcopy Create free account
hub / github.com/YUE-FAN/CoSSL / plot

Method plot

utils/logger.py:70–77  ·  view source on GitHub ↗
(self, names=None)

Source from the content-addressed store, hash-verified

68 self.file.flush()
69
70 def plot(self, names=None):
71 names = self.names if names == None else names
72 numbers = self.numbers
73 for _, name in enumerate(names):
74 x = np.arange(len(numbers[name]))
75 plt.plot(x, np.asarray(numbers[name]))
76 plt.legend([self.title + '(' + name + ')' for name in names])
77 plt.grid(True)
78
79 def close(self):
80 if self.file is not None:

Callers 2

plot_overlapFunction · 0.45
logger.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected