Save graph positions on switch