drawing just half of a matrix in matplotlib with python -


How can I attract only half of the matrix, e.g. The top / bottom part of a matrix, for example with pcolor?

Suppose i have an n x n matrix and I draw it using pcolor (my_matrix). I want only lower half to be shown because other values ​​are useless. How can it be done?

Thank you.

Is this zero in the other half?

  Theater (mat * triangular (shape (mat)))  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -