Bug report DrawClone!


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.20.04
Platform: mac OS X 10.15
Compiler: Not Provided


tutorial fitsio/FITS_tutorial3.C

new method

         std::unique_ptr<TImage> im(hdu.ReadAsImage(0));
         c2->cd(i);
         im->DrawClone();

bug!
snap|588x500
the TCanvas::cd() not the right way!
It seems this method draw image on global pad c2->cd() not on sub pad

old method
OK

TImage* im = hdu.ReadAsImage(0);
cd->cd(i);
im->Draw()

should I open a issue of this on github repo?

Hi,
thanks for the report, we collect bug reports at https://sft.its.cern.ch/jira/projects/ROOT , it would be great if you could report there too.

Cheers,
Enrico

As explained by @couet … this is not a bug.

1 Like

That is correct, I would made a pr on GitHub for tutorials.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.