Hi Alberto, Very likely, your function has some peculiar parameter values that generate infinite values on the y scale. When saving the function to a file, precomputed function values are saved at TH1::fNpx points. An interpolation is done when reading the canvas with the function. A canvas.root file would be more useful than gif files. Rene Brun On Thu, 1 Aug 2002, Alberto Garcia Raboso wrote: > Hi ROOTers, > > I have some profiles, already drawn, that I have to fit (so I do it). > Everything's OK up to this point, but, when I try to draw the fit > function, everything's KO. Although I use the "same" option, it seems > that ROOT goes crazy, maybe because the fit function has asymptotes, and > thus changes the scale in the y axis. > > I think I've tried almost everything, but I can't get to redimension it > to the desired range from the command line. So, I've had to implement a > loop to modify the range in which the function is drawn to manually > specify it until it is OK. More or less, the problem is solved, but this > forces me to stand in front of the screen during the running (a not very > interesting activity). > > So, does anybody have an idea about how to arrange it so I could go to > have a coffee? Thanks in advance. > > Cheers, > > Alberto > > P.S.: By the way, when I save the canvas as a ".root" file and try to > open it later, I get a difference. Have a look on the files "before.gif" > and "after.gif" at /afs/cern.ch/user/g/graboso/public/. The fitting > range is [-300, 300]. >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:02 MET