splines and legend changes