import numpy as np
from src.common.logger_mixin import LoggerMixin
import matplotlib.pyplot as plt

class TwoSeriesManualExport(LoggerMixin, object):
    # logger mixin example
    def read_csv(self):
        if(self.logger.getEffectiveLevel() <= self.logging.DEBUG):
            self.logger.debug('plotting for debug')
            x,y = np.arange(10), np.random.random(10)
            plt.plot(x,y)

# # Example usage in notebook
# from src.data.grafana import TwoSeriesManualExport
# my_exporter = TwoSeriesManualExport()
# my_exporter.debug_mode() # from the mixin
# my_exporter.read_csv()