{ "cells": [ { "cell_type": "markdown", "id": "8a81f68e", "metadata": {}, "source": [ "# ellipse\n", "\n", "\n", "\n", "\n", "**Author:** Rene Brun \n", "This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Tuesday, May 19, 2026 at 08:36 PM." ] }, { "cell_type": "code", "execution_count": 1, "id": "c5f60167", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:36:59.642711Z", "iopub.status.busy": "2026-05-19T20:36:59.642585Z", "iopub.status.idle": "2026-05-19T20:37:00.164468Z", "shell.execute_reply": "2026-05-19T20:37:00.163867Z" } }, "outputs": [], "source": [ "auto c1 = new TCanvas(\"c1\");\n", "c1->Range(0, 0, 1, 1);\n", "auto pel = new TPaveLabel(0.1, 0.8, 0.9, 0.95, \"Examples of Ellipses\");\n", "pel->SetFillColor(42);\n", "pel->Draw();\n", "auto el1 = new TEllipse(0.25, 0.25, .1, .2);\n", "el1->Draw();\n", "auto el2 = new TEllipse(0.25, 0.6, .2, .1);\n", "el2->SetFillColor(6);\n", "el2->SetFillStyle(3008);\n", "el2->Draw();\n", "auto el3 = new TEllipse(0.75, 0.6, .2, .1, 45, 315);\n", "el3->SetFillColor(2);\n", "el3->SetFillStyle(1001);\n", "el3->SetLineColor(4);\n", "el3->Draw();\n", "auto el4 = new TEllipse(0.75, 0.25, .2, .15, 45, 315, 62);\n", "el4->SetFillColor(5);\n", "el4->SetFillStyle(1001);\n", "el4->SetLineColor(4);\n", "el4->SetLineWidth(6);\n", "el4->Draw();" ] }, { "cell_type": "markdown", "id": "f4cba336", "metadata": {}, "source": [ "Draw all canvases " ] }, { "cell_type": "code", "execution_count": 2, "id": "d14b0c8a", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:37:00.175192Z", "iopub.status.busy": "2026-05-19T20:37:00.175013Z", "iopub.status.idle": "2026-05-19T20:37:00.408715Z", "shell.execute_reply": "2026-05-19T20:37:00.408297Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "