def get_y_fromstab(val,span):
    """Get the y coordinate for plotting the stability curve"""
    zero=10
    graphrange=180
    if span==0:
        span=10
    return (graphrange-val*(graphrange/span))+zero