def update(val):
    global sliders , mainPlot, fig
    params = np.zeros((numParams,1));
    for i in range(numParams):
        params[i] = sliders[i].val;
    shape = shapeModeler.makeShape(params);
    shape = ShapeModeler.normaliseShape(shape);
    numPointsInShape = len(shape)/2;
    x_shape = shape[0:numPointsInShape];
    y_shape = shape[numPointsInShape:];
    mainPlot.set_data(x_shape, -y_shape);
    fig.canvas.draw_idle();
dataset/ETHPy150Open chili-epfl/shape_learning/scripts/shape_model_gui.py/update/original