Hi:
I use the following code to do matrix plot
#include<root/TCanvas.h>
#include<root/TStyle.h>
#include<root/TMatrix.h>
int main()
{
TCanvas canvas;
gStyle->SetOptStat(0);
TMatrixT<double> matrix(4,4);
matrix(0,0)=1;
matrix(0,1)=2;
matrix(0,2)=3;
matrix(0,3)=5;
matrix(1,1)=4;
matrix(1,2)=1;
matrix(1,3)=6;
matrix(2,2)=7;
matrix(2,3)=8;
matrix(3,3)=9;
matrix.DrawClone("colz");
canvas.Print("haha.pdf");
matrix.Print();
}
Obvious such matrix is a upper triangular matrix. However the haha.pdf shows that the element of matrix(0,0) is on the bottom left corner so that the graph does not look like upper triangular. Is there a way to make matrix(0,0) on the upper left corner just like mathmatica matplotlib.org/examples/pylab_ex … tshow.html