def plot_callback(sender, data):
    clear_plot('Plot')
    data1x = []
    data1y = []
    for i in range(0, 100):
        data1x.append(((3.14 * i) / 180))
        data1y.append(cos((((3 * 3.14) * i) / 180)))
    data2x = []
    data2y = []
    for i in range(0, 100):
        data2x.append(((3.14 * i) / 180))
        data2y.append(sin((((2 * 3.14) * i) / 180)))
    add_line_series('Plot', 'Cos', data1x, data1y, weight=2)
    add_shade_series('Plot', 'Cos', data1x, data1y, y2=([0.0] * 100), weight=2, fill=[255, 0, 0, 100], color=[255, 0, 0, 100])
    add_scatter_series('Plot', 'Sin', data2x, data2y)
def plot_callback(sender, data):
    clear_plot('Plot')
    data1x = []
    data1y = []
    for i in range(0, 100):
        data1x.append(((3.14 * i) / 180))
        data1y.append(cos((((3 * 3.14) * i) / 180)))
    data2x = []
    data2y = []
    for i in range(0, 100):
        data2x.append(((3.14 * i) / 180))
        data2y.append(sin((((2 * 3.14) * i) / 180)))
    add_line_series('Plot', 'Cos', data1x, data1y, weight=2)
    add_shade_series('Plot', 'Cos', data1x, data1y, y2=([0.0] * 100), weight=2, fill=[255, 0, 0, 100], color=[255, 0, 0, 100])
    add_scatter_series('Plot', 'Sin', data2x, data2y)