Visualising a Matrix
<p>What is the best way of visualizing  the contents of a org.apache.spark.mllib.linalg.Matrix / DenseMatrix with python? </p>

<p>For example a  confusionMatrix</p>

<pre><code>from pyspark.mllib.linalg import Vectors, DenseMatrix 

m = DenseMatrix(3,3,[  3.33470000e+04,   2.44000000e+02,   1.60000000e+01,  2.93500000e+03,   1.01400000e+03,   1.90000000e+01,  3.50300000e+03,   1.24000000e+02,   1.20000000e+01])
print(m)
m.toArray()

DenseMatrix([[  3.33470000e+04,   2.93500000e+03,   3.50300000e+03],
             [  2.44000000e+02,   1.01400000e+03,   1.24000000e+02],
             [  1.60000000e+01,   1.90000000e+01,   1.20000000e+01]])
Out[58]:
array([[  3.33470000e+04,   2.93500000e+03,   3.50300000e+03],
       [  2.44000000e+02,   1.01400000e+03,   1.24000000e+02],
       [  1.60000000e+01,   1.90000000e+01,   1.20000000e+01]])
</code></pre>