In PaintGraph fHistogram's limits are computed with some margins. The new minimum along x is stored in "uxmin" and the new minimum along y in "minimum". In some cases the new minimum can be negative whereas the real minimum is positive. In such case, the new minimum was set to 90% of the real minimum in case of log scale, and to 0 in case of linear scale. Setting to 0 in case of linear scale, was not a good idea because if the pad is turned into log scale later on, then some points close to the real mimimum are not visible. The following macro demonstrate the problem:
In PaintGraph fHistogram's limits are computed with some margins. The new
minimum along x is stored in "uxmin" and the new minimum along y in "minimum".
In some cases the new minimum can be negative whereas the real minimum is
positive. In such case, the new minimum was set to 90% of the real minimum
in case of log scale, and to 0 in case of linear scale. Setting to 0 in case
of linear scale, was not a good idea because if the pad is turned into log
scale later on, then some points close to the real mimimum are not visible.
The following macro demonstrate the problem:

{
   Double_t x[2];
   Double_t y[2];
   x[0]=  200; y[0]=2.0271;
   x[1]=3e+06; y[1]=0.0005;
   TGraph *gr = new TGraph(2,x,y);
   gr->Draw("alp");
   gr->SetMarkerStyle(20);
   gPad->Update();
   gPad->SetLogx();
   gPad->SetLogy();
}
 
Now, when the new computed minimum is negative and when the real minimum is
positive, the new minimum is set to 90% of the real minimum in both log and 
linear scale.


git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@21587 27541ba8-7e3a-0410-8455-c3a389f83636

dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT