DISQUS

Data Wrangling Blog: Python Montage Code for Displaying Arrays

  • Peter Skomoroch · 1 year ago

    I'm suffering from a serious lack of sleep this week, so let me know if you spot any bad code as I post these examples.


    After looking at the post this morning, I realized that the imshow line:


    <pre lang="python">
    pylab.imshow(flipud(rot90(M)), cmap=colormap)
    </pre>

    ... is a lot cleaner using a transpose:


    <pre lang="python">
    pylab.imshow(M.T, cmap=colormap)
    </pre>