Exemplo n.º 1
0
 def create_plot(self, event):
     """This method create a plot with range of year"""
     start_year = eval(self.m_textCtrl2.GetValue())
     end_year = eval(self.m_textCtrl1.GetValue())
     plot = PlotOperations(start_year, end_year)
     plot.create_weather_data()
     plot.create_plot(plot.weather_data)
Exemplo n.º 2
0
 def plot_selection():
     """This method is to create weather plot"""
     print(
         'Please enter  year range of interest '
         '(from year, to year example: 2000,2017)')
     x = input().split(",")
     test = PlotOperations(int(x[0]), int(x[1]))
     test.create_weather_data()
     test.create_plot(test.weather_data)