astropy/astropy — pull request #607 by astrofrog (2013-01-07 13:18:47+00:00)
Title: Allow scalar and array Quantity objects to be converted to Numpy arrays

At the moment, if ``q`` is a quantity, then ``float(q)`` works, but there is no equivalent for arrays. This PR adds the ability to do ``np.array(q)`` and therefore also allows quantities to be used in plotting.