Use a greater precision to output the X and Y vectors. The following macro generated a wrong output (tmp.C).
Use a greater precision to output the X and Y vectors. The following macro generated a wrong output (tmp.C).

void testGraphPrec(){
  double offset=55.0;
  TCanvas* myC = new TCanvas("myC","myC",600,400);
  TGraph* gr=new TGraph();
  for(int i=0;i<10;i++){
    double point_x = 3.0+((double) i)*1e-7;
    double point_y = offset+((double) i)*1e-8;
    gr->SetPoint(i,point_x,point_y);
  }
  gr->Draw("AP");
  myC->Print("tmp.C");
}


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@40180 27541ba8-7e3a-0410-8455-c3a389f83636

gbitzes/root,simonpf/root,root-mirror/root,sirinath/root,davidlt/root,lgiommi/root,alexschlueter/cern-root,mattkretz/root,gganis/root,veprbl/root,mhuwiler/rootauto,perovic/root,mkret2/root,vukasinmilosevic/root,pspe/root,omazapa/root-old,vukasinmilosevic/root,kirbyherm/root-r-tools,vukasinmilosevic/root,esakellari/my_root_for_test,gganis/root,sbinet/cxx-root,simonpf/root,bbockelm/root,abhinavmoudgil95/root,BerserkerTroll/root,CristinaCristescu/root,Dr15Jones/root,dfunke/root,0x0all/ROOT,zzxuanyuan/root,agarciamontoro/root,Duraznos/root,perovic/root,sbinet/cxx-root,zzxuanyuan/root,sawenzel/root,olifre/root,gbitzes/root,simonpf/root,esakellari/my_root_for_test,mhuwiler/rootauto,gbitzes/root,krafczyk/root,bbockelm/root,root-mirror/root,kirbyherm/root-r-tools,jrtomps/root,omazapa/root-old,lgiommi/root,karies/root,sawenzel/root,satyarth934/root,sbinet/cxx-root,sbinet/cxx-root,CristinaCristescu/root,root-mirror/root,smarinac/root,pspe/root,bbockelm/root,0x0all/ROOT,sbinet/cxx-root,davidlt/root,CristinaCristescu/root,dfunke/root,tc3t/qoot,karies/root,olifre/root,mhuwiler/rootauto,davidlt/root,mattkretz/root,davidlt/root,davidlt/root,jrtomps/root,jrtomps/root,georgtroska/root,pspe/root,omazapa/root,agarciamontoro/root,satyarth934/root,gganis/root,nilqed/root,arch1tect0r/root,zzxuanyuan/root,karies/root,esakellari/root,sirinath/root,mhuwiler/rootauto,lgiommi/root,cxx-hep/root-cern,dfunke/root,georgtroska/root,cxx-hep/root-cern,0x0all/ROOT,kirbyherm/root-r-tools,georgtroska/root,dfunke/root,cxx-hep/root-cern,georgtroska/root,olifre/root,evgeny-boger/root,agarciamontoro/root,agarciamontoro/root,0x0all/ROOT,zzxuanyuan/root,jrtomps/root,veprbl/root,vukasinmilosevic/root,omazapa/root,zzxuanyuan/root-compressor-dummy,sirinath/root,mattkretz/root,zzxuanyuan/root-compressor-dummy,veprbl/root,root-mirror/root,satyarth934/root,perovic/root,Duraznos/root,arch1tect0r/root,mkret2/root,georgtroska/root,CristinaCristescu/root,omazapa/root,vukasinmilosevic/root,georgtroska/root,nilqed/root,abhinavmoudgil95/root,mattkretz/root,perovic/root,arch1tect0r/root,0x0all/ROOT,Y--/root,omazapa/root-old,CristinaCristescu/root,dfunke/root,Dr15Jones/root,thomaskeck/root,nilqed/root,smarinac/root,abhinavmoudgil95/root,satyarth934/root,abhinavmoudgil95/root,Y--/root,veprbl/root,davidlt/root,smarinac/root,karies/root,mhuwiler/rootauto,kirbyherm/root-r-tools,Duraznos/root,gganis/root,evgeny-boger/root,ffurano/root5,smarinac/root,buuck/root,evgeny-boger/root,sawenzel/root,CristinaCristescu/root,smarinac/root,esakellari/root,esakellari/my_root_for_test,veprbl/root,sawenzel/root,perovic/root,evgeny-boger/root,Duraznos/root,strykejern/TTreeReader,ffurano/root5,esakellari/root,bbockelm/root,esakellari/root,olifre/root,buuck/root,evgeny-boger/root,gbitzes/root,pspe/root,veprbl/root,smarinac/root,nilqed/root,evgeny-boger/root,arch1tect0r/root,Duraznos/root,perovic/root,esakellari/root,root-mirror/root,esakellari/root,gganis/root,simonpf/root,Duraznos/root,nilqed/root,pspe/root,beniz/root,veprbl/root,nilqed/root,mhuwiler/rootauto,CristinaCristescu/root,tc3t/qoot,simonpf/root,root-mirror/root,strykejern/TTreeReader,sbinet/cxx-root,perovic/root,pspe/root,root-mirror/root,arch1tect0r/root,buuck/root,satyarth934/root,zzxuanyuan/root-compressor-dummy,Y--/root,esakellari/my_root_for_test,sawenzel/root,veprbl/root,mattkretz/root,esakellari/my_root_for_test,karies/root,simonpf/root,omazapa/root,sbinet/cxx-root,buuck/root,Y--/root,karies/root,olifre/root,abhinavmoudgil95/root,Dr15Jones/root,dfunke/root,omazapa/root-old,esakellari/root,davidlt/root,ffurano/root5,sirinath/root,nilqed/root,nilqed/root,buuck/root,zzxuanyuan/root,jrtomps/root,georgtroska/root,strykejern/TTreeReader,olifre/root,omazapa/root,evgeny-boger/root,agarciamontoro/root,omazapa/root-old,bbockelm/root,krafczyk/root,krafczyk/root,bbockelm/root,tc3t/qoot,ffurano/root5,zzxuanyuan/root-compressor-dummy,satyarth934/root,abhinavmoudgil95/root,zzxuanyuan/root,gganis/root,dfunke/root,agarciamontoro/root,strykejern/TTreeReader,lgiommi/root,krafczyk/root,esakellari/my_root_for_test,jrtomps/root,root-mirror/root,BerserkerTroll/root,mhuwiler/rootauto,thomaskeck/root,georgtroska/root,BerserkerTroll/root,nilqed/root,tc3t/qoot,perovic/root,BerserkerTroll/root,smarinac/root,bbockelm/root,dfunke/root,omazapa/root-old,abhinavmoudgil95/root,lgiommi/root,vukasinmilosevic/root,gganis/root,evgeny-boger/root,gganis/root,BerserkerTroll/root,veprbl/root,dfunke/root,beniz/root,pspe/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,CristinaCristescu/root,BerserkerTroll/root,cxx-hep/root-cern,sawenzel/root,sbinet/cxx-root,tc3t/qoot,omazapa/root-old,Dr15Jones/root,buuck/root,beniz/root,karies/root,gbitzes/root,zzxuanyuan/root-compressor-dummy,karies/root,krafczyk/root,gganis/root,karies/root,jrtomps/root,davidlt/root,gbitzes/root,Duraznos/root,olifre/root,evgeny-boger/root,pspe/root,zzxuanyuan/root,satyarth934/root,vukasinmilosevic/root,lgiommi/root,jrtomps/root,tc3t/qoot,beniz/root,zzxuanyuan/root,georgtroska/root,simonpf/root,karies/root,Duraznos/root,0x0all/ROOT,strykejern/TTreeReader,beniz/root,gbitzes/root,sirinath/root,beniz/root,thomaskeck/root,BerserkerTroll/root,tc3t/qoot,thomaskeck/root,omazapa/root,kirbyherm/root-r-tools,perovic/root,krafczyk/root,vukasinmilosevic/root,sirinath/root,zzxuanyuan/root-compressor-dummy,sawenzel/root,beniz/root,tc3t/qoot,esakellari/root,gganis/root,agarciamontoro/root,lgiommi/root,karies/root,arch1tect0r/root,CristinaCristescu/root,esakellari/root,Y--/root,simonpf/root,olifre/root,georgtroska/root,mkret2/root,pspe/root,esakellari/root,omazapa/root-old,jrtomps/root,olifre/root,arch1tect0r/root,olifre/root,buuck/root,satyarth934/root,lgiommi/root,gbitzes/root,0x0all/ROOT,sawenzel/root,sbinet/cxx-root,0x0all/ROOT,strykejern/TTreeReader,agarciamontoro/root,evgeny-boger/root,gbitzes/root,kirbyherm/root-r-tools,mattkretz/root,abhinavmoudgil95/root,omazapa/root-old,sawenzel/root,alexschlueter/cern-root,gbitzes/root,thomaskeck/root,lgiommi/root,mattkretz/root,beniz/root,krafczyk/root,smarinac/root,zzxuanyuan/root-compressor-dummy,esakellari/root,krafczyk/root,Y--/root,esakellari/my_root_for_test,sirinath/root,cxx-hep/root-cern,mattkretz/root,cxx-hep/root-cern,arch1tect0r/root,alexschlueter/cern-root,sawenzel/root,thomaskeck/root,sirinath/root,alexschlueter/cern-root,dfunke/root,nilqed/root,thomaskeck/root,ffurano/root5,thomaskeck/root,alexschlueter/cern-root,Duraznos/root,Dr15Jones/root,0x0all/ROOT,Y--/root,Y--/root,cxx-hep/root-cern,veprbl/root,sawenzel/root,sbinet/cxx-root,mhuwiler/rootauto,satyarth934/root,BerserkerTroll/root,omazapa/root,Y--/root,tc3t/qoot,mattkretz/root,omazapa/root,ffurano/root5,mattkretz/root,CristinaCristescu/root,mkret2/root,olifre/root,simonpf/root,BerserkerTroll/root,bbockelm/root,kirbyherm/root-r-tools,jrtomps/root,satyarth934/root,arch1tect0r/root,nilqed/root,agarciamontoro/root,vukasinmilosevic/root,thomaskeck/root,pspe/root,lgiommi/root,sirinath/root,mkret2/root,Dr15Jones/root,veprbl/root,esakellari/my_root_for_test,root-mirror/root,mhuwiler/rootauto,buuck/root,sirinath/root,BerserkerTroll/root,mkret2/root,Duraznos/root,sirinath/root,smarinac/root,ffurano/root5,mkret2/root,omazapa/root-old,lgiommi/root,alexschlueter/cern-root,bbockelm/root,abhinavmoudgil95/root,gbitzes/root,mkret2/root,mattkretz/root,root-mirror/root,arch1tect0r/root,buuck/root,omazapa/root,simonpf/root,zzxuanyuan/root,vukasinmilosevic/root,mkret2/root,zzxuanyuan/root-compressor-dummy,satyarth934/root,omazapa/root,davidlt/root,omazapa/root,tc3t/qoot,bbockelm/root,evgeny-boger/root,zzxuanyuan/root,simonpf/root,buuck/root,Y--/root,krafczyk/root,abhinavmoudgil95/root,sbinet/cxx-root,gganis/root,davidlt/root,Dr15Jones/root,esakellari/my_root_for_test,krafczyk/root,bbockelm/root,mkret2/root,georgtroska/root,agarciamontoro/root,root-mirror/root,BerserkerTroll/root,alexschlueter/cern-root,mhuwiler/rootauto,abhinavmoudgil95/root,esakellari/my_root_for_test,vukasinmilosevic/root,dfunke/root,pspe/root,beniz/root,omazapa/root-old,davidlt/root,krafczyk/root,cxx-hep/root-cern,beniz/root,mkret2/root,Duraznos/root,smarinac/root,zzxuanyuan/root-compressor-dummy,CristinaCristescu/root,strykejern/TTreeReader,perovic/root,arch1tect0r/root,jrtomps/root,Y--/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,mhuwiler/rootauto,beniz/root,perovic/root,agarciamontoro/root,thomaskeck/root,buuck/root