Can't plotting one graph onto another

As the title says, I read from the documentation that by default ROOT draws every graph inside the same window -onto the same Canvas. But to me, it seems that ROOT allows me to see only the last graph it’s been plotted. I can’t understand why.

Here’s the code:

#include "TApplication.h"
#include "TF1.h"

int main(int argc, char** argv) {

        TApplication app ("App", &argc, argv);

        TF1 *f1 = new TF1 ("f1","(x^4 - 4*x^2 + 3)/(x^4)", 0.8, 50.);
        TF1 *a = new TF1 ("asymptote", "1", 0.8, 50.);


        //Depending on the order of the last two instructions above
        //I'll see only the function plotted or only
        //the asymptote drawn.



Thank you!

a->Draw(“L SAME”);

[quote=“Pepe Le Pew”]a->Draw(“L SAME”);[/quote]

Great! Thanks :slight_smile: