High resolution spectropolarimetry: from Astrophysics to ECR plasmas