RE: multiple TGraphs in the same pad

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 2 Mar 2011 13:35:23 +0000


Hi,
It looks like you are using Python but I can try to see if it does the same with cint. Can you send a macro defining g1 g2 and g3 ? Cheers,
oc

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Margar Simonyan Sent: Wednesday, March 02, 2011 2:32 PM
To: roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: [ROOT] multiple TGraphs in the same pad

Hello

initially I thought that this is too simple post, but ...

I have several graphs,

g1.Draw('AP')
g2.Draw('P')

now I can zoom both axis, everything is Ok.

g3.Draw('P')

it is not possible to zoom any more, why? This must be simple.

I tried TMultiGraph, it works, but it owns TGraphs and I get double delete problem because of Python memory management during reload. Why TMultiGraph must own its TGraphs?

Thanks,

       Margar



 Dr Margar Simonyan,  post-doctoral researcher
 Niels Bohr Institute, Copenhagen University

Received on Wed Mar 02 2011 - 14:35:29 CET

This archive was generated by hypermail 2.2.0 : Wed Mar 02 2011 - 17:50:01 CET