add legends - implemented only for PGPLOT