Re: [PATCH] enlarge TGraph enclosing rectangle correctly when drawing log scale

From: Roland Kuhn <rkuhn_at_e18.physik.tu-muenchen.de>
Date: Thu, 12 May 2005 13:08:59 +0200


Hi Olivier!

On May 12, 2005, at 11:26 AM, Olivier Couet wrote:

> Hi Roland,
>
> Can you send a small example macro allowing us to see what improvements
> your patch provides ?
>

Sure:

{
double x[] = {0.1,0.5,0.9};
double y[] = {-1,0,1};
TGraph *g = new TGraph(3, x, y);
c = new TCanvas;
c->SetLogx();
g->Draw("ap");
}

I just noticed that my patch does not change the behaviour of switching the pad to logx via the context menu.

Ciao,

                                        Roland

--
TU Muenchen, Physik-Department E18, James-Franck-Str. 85747 Garching
Telefon 089/289-12592; Telefax 089/289-12570
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on a mailing list?

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P-(+) L+++ E(+) W+ !N K- w--- M+ 
!V Y+
PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++
------END GEEK CODE BLOCK------


Received on Thu May 12 2005 - 13:15:06 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET