Category "dimensions"

why plotting a (112,112,2) in matplotlib using imshow() is not possible?

why is it that we can not plot a matrix that has the shape (112,112,2) but doing it for shapes such as (112,112,3)is ok ? TypeError: Invalid shape (112, 112, 2)

PyQt5: How to Get Dimensions of Displayed Widgets

I have PyQt5 QLabels that expand/contract as the QMainWindow size changes. I want to get the dimensions of the QLabels when the QMainWindow is sized to anythin