Method
plot
(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 | |
| 727 | class NoisyGridData: |
Callers
nothing calls this directly
Tested by
no test coverage detected