add labels to plots, use our own magnitude function