Fix scatterplot bug introduced in 17425fd1.