Inconsistent Results from CINT

I have a macro that is supposed to draw two graphs, one scaled down, on the same pad. When I run it in CINT using .x macroname, the result isn’t what I expect. However, when I copy each command line by line into CINT and run them individually, it works as intended. Any ideas what I’m doing wrong?
strangebehavior.doc (87 KB)


when entering lines in Cint, gPad->Update() is called afer every line. When executing a macro you’ll have to add this / these calls where they are needed. An example: you can’t modify an axis before it hasn’t been drawn.

Cheers, Axel.