Rooters,
I am using a TF2 to make contours with unequal divisions, and find a problem
with version 3.05.02 (on Linux redhat 7.2)
Using the following:
TF2 *gaus = new TF2("gaus","exp(-0.5*(x*x+y*y)/10.0)",-10.,10.,-10.,10.);
gaus->SetMaximum(1.0);
gaus->SetMinimum(0.2);
gaus->SetNpx(100);
gaus->SetNpy(100);
Double_t contlevels[4] = {0.2,0.7,0.75,0.95};
gaus->SetContour(4,contlevels);
Int_t morecolors[4] = {5,4,3,2};
gStyle->SetPalette(4,morecolors);
TCanvas *cone = new TCanvas("cone","colors",100,100,400,400);
gaus->Draw("zcol");
TCanvas *ctwo = new TCanvas("ctwo","contours",500,100,400,400);
gaus->Draw("cont1");
I find in Version 3.05.02 I get the desired unequal divisions in the "zcol"
plots, but not in the "cont1" version. Instead, in the "cont1" version the
contours come out with equal divisions.
I tried the above with version 3.03.09, and oddly enough found the opposite
behavior, where the "cont1" plot worked, but the "zcol" plot came out
with equal divisions.
Thanks for your help.
Aaron
_______________________________________________________________________________
Prof. Aaron Roodman Stanford Linear Accelerator Center
Stanford University E-mail: roodman@slac.stanford.edu
2575 Sand Hill Rd. Phone: 650-926-2705
MS 95 Fax: 650-926-2657
Menlo Park, CA 94025 URL: http://www.slac.stanford.edu/~roodman
_______________________________________________________________________________
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET