#includevoid drawCanvas() { TCanvas *canvas = new TCanvas("myCanvas", "My Canvas", 800, 600); canvas->SetBorderMode(0); canvas->Draw(); }
#includevoid drawCanvas() { TCanvas *canvas = new TCanvas("myCanvas", "My Canvas", 800, 600); canvas->SetBorderMode(1); canvas->Draw(); }
#includeIn this example, we create a new canvas object named "myCanvas" and set its border mode to 2, which shows both the outer and inner borders of the canvas. The canvas is then drawn. Overall, TCanvas SetBorderMode is a simple function in the ROOT package library that's used to manipulate the borders of a canvas object. By adjusting the border mode parameter, you can customize the appearance of your canvas to suit your needs.void drawCanvas() { TCanvas *canvas = new TCanvas("myCanvas", "My Canvas", 800, 600); canvas->SetBorderMode(2); canvas->Draw(); }