Add the following lines in your example Rene Brun On Tue, 28 May 2002, Choi Ki-young wrote: > I want to draw a TMatrixD object. But I can't. > > ------------------------------------------------------ > #include <iostream> #include "TCanvas.h" //<=========================== > using namespace std; > > #include "TMatrix.h" > > int main(void) > { TCanvas *c = new TCanvas("c1"); //<========================== > int i,j; > > TMatrix E(10,10); > > for(i=0;i<10;i++) > for(j=0;j<10;j++) > E(i,j) = i*j; > > for(i=0;i<10;i++) > for(j=0;j<10;j++) > printf("%f\n",E(i,j)); > > E.Draw("SURF"); c->Update(); //<=============================== > > getchar(); > > return(0); > }// end of main > ------------------------------------------------------ > > This code draw only empty window. What's wrong? > > > -- > Sincerely, Ki-young > > pub 1024D/B4446BBF 2002-02-27 Choi Ki-young <xenus@gnu.org> > Fingerprint: 99AF B7C5 2D4E B965 B3AA A725 A710 F606 B444 6BBF >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:54 MET