mpltools icon indicating copy to clipboard operation
mpltools copied to clipboard

Diamonds in Hinton diagrams instead of squares

Open marcusps opened this issue 11 years ago • 2 comments

Hinton diagrams are suddenly using diamonds instead of squares.

In [24]: mpltools.special.hinton(numpy.random.randn(10,10))

image

Using my own mpltools build from binstar, which can be found here (it just pulls the latest mpltools form github)

marcusps avatar Sep 17 '14 14:09 marcusps

I'm running into the same issue. I ended up using http://wiki.scipy.org/Cookbook/Matplotlib/HintonDiagrams

jaanli avatar Sep 27 '14 12:09 jaanli

It looks like the class I was using to draw the squares (RegularPolyCollection) is broken in matplotlib 1.4. I've filed an issue (https://github.com/matplotlib/matplotlib/issues/3574). Downgrading to 1.3 should work, if that's an option.

tonysyu avatar Sep 27 '14 14:09 tonysyu