MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / plot

Method plot

src/pymgrid/utils/DataGenerator.py:715–724  ·  view source on GitHub ↗
(self, sample, days_to_plot=(0, 10))

Source from the content-addressed store, hash-verified

713 return new_stacked_data
714
715 def plot(self, sample, days_to_plot=(0, 10)):
716
717 if not sample.shape[1]==1:
718 raise ValueError('sample must be in stacked form')
719
720 plt.plot(sample[24 * days_to_plot[0]:24 * days_to_plot[1]].values, label='sample')
721 plt.plot(self.unmunged_data[24 * days_to_plot[0]:24 * days_to_plot[1]].values, label='original')
722 plt.title('Load Sample')
723 plt.legend()
724 plt.show()
725
726
727class NoisyGridData:

Callers

nothing calls this directly

Calls 1

plotMethod · 0.45

Tested by

no test coverage detected