TString dir = gROOT->GetTutorialDir(); TFITSHDU hdu(dir + "/fitsio/sample2.fits"); hdu.Print("F+"); std::unique_ptr Y(hdu.GetArrayRow(0)); std::unique_ptr X(hdu.GetArrayRow(1)); TGraph gr(*X,*Y); auto c = new TCanvas("c1", "FITS tutorial #2", 800, 800); gr.SetFillColor(kRed); gr.DrawClone("BA"); gROOT->GetListOfCanvases()->Draw()