This was needed because of a bug in a particular version of matplotlib. The bug is fixed in the most recent version, so we can drop the .magnitude for the sake of clarity.