Active magnetoplasmonic ruler.