Aesthetic issue plotting TF1 in log-y scale

From: Kevin B. McCarty <kmccarty_at_gmail.com>
Date: Fri, 20 Jul 2007 15:45:04 -0700


Dear root-talk,

I am having a minor but annoying aesthetic problem with ROOT. If I plot a TF1 in a frame whose y-axis is in log-scale, the parts of the function that extend above or below the limits of the frame are drawn as a solid horizontal line along the top or bottom of the frame. This problem does not happen with a linear y-scale.

I am using ROOT 5.14/00b, installed with Fink on Mac OS X (Intel).

Trivial example to show the issue:

root [0] TH2F * axes = new TH2F("axes", "axes", 10, 0, 10, 10, 0, 1)
root [1] TF1 * f = new TF1("func", "sin(x)", 0, 10)
root [2] axes->GetYaxis()->SetRangeUser(0.1, 0.5)
root [3] axes->Draw()

<TCanvas::MakeDefCanvas>: created default TCanvas with name c1 root [4] f->Draw("same")

At this point everything looks fine...

root [5] gPad->SetLogy()

but now the drawn function appears to be "railed" against the top and bottom in the range of x-values where it should simply go off the canvas.

Is this something that is solved in a more recent release? I have not been able to find anything with Google discussing this specific problem.

Thank you in advance,

-- 
Kevin B. McCarty <kmccarty_at_princeton.edu>   Physics Department
WWW: http://www.princeton.edu/~kmccarty/    Princeton University
GPG: public key ID 4F83C751                 Princeton, NJ 08544
Received on Sat Jul 21 2007 - 00:45:10 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 23 2007 - 17:50:03 CEST