//routine per plottare un grafico 2D, riempiendo gli //array da un file di dati #include "TGraph2D.h" #include "TGraph.h" #include "TCanvas.h" #include "TStyle.h" int MainGraph (){ TCanvas *c = new TCanvas("c","Graph2D esempio",0,0,700,600); TGraph2D *g = new TGraph2D("graph2.dat"); gStyle->SetPalette(1); g->Draw("surf1"); }