How can i generate Pauli pseudocolor images from T_3 complex matrix

Hi, guys. here I have some T_3 complex matrices .mat file and I just want to convert it to Pauli images use python language. I meet troubles when I convert the diag elements to dB rep.(10 * log10(…)) and show it with RGB format. So I am so curious about what’s wrong with this processing?

And another question: How can I convert the .stk/.bin file to Pauli BMP images?