Hi Jeff, The algorithm projecting to polar coordinates gives a lot of weight to the non-central parts of your histogram. In your case, if you zoom the plot to show only [-100,100] instead of [-200,200], you will get a better plot in polar coordinates. Rene Brun On Tue, 3 Oct 2000, Jeffrey McDonald wrote: > Hi, > > I'm using the 2d-histogram class to make various distributions > using many different formats. I'm modeling this after a tutorial for > plotting 2d-distributions. The distributions look fine except for the > surf1pol distribution. > > The problem is that it the distribution (which is centered at the > origin for all of the other plots) is not centered at the origin and there > is a definite radial dependence. (It looks as if the routine doing the > translation from cartesian to polar is not doing the angle conversion > correctly -- radially, i've no idea whats happening.) > > The only difference between my code and the tutorial "the 2-D > histograms drawing options" is that I'm filling the histogram from a > file, not with a function. > > I put a single postscript file showing the > plots for the lego distributions at > http://www-minos.phyast.pitt.edu/plots/lego.ps > > If there is some flag or something simple that I need to fix the > distribution please let me know. > > Thanks in advance, > > Jeff > _____________________________________________________ > Jeffrey McDonald, University of Pittsburgh jemcdon+@pitt.edu > 100 Allen Hall office: 412-624-9056 > 3941 O'Hara St. lab: 412-624-9160 > Dept. of Physics and Astronomy fax: 412-624-9163 > University of Pittsburgh > Pittsburgh, PA 15260 >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET