{ "cells": [ { "cell_type": "markdown", "id": "b82cbcc3", "metadata": {}, "source": [ "# diamond\n", "\n", "\n", "\n", "\n", "**Author:** Olivier Couet \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": "84c8500a", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:36:54.353803Z", "iopub.status.busy": "2026-05-19T20:36:54.353682Z", "iopub.status.idle": "2026-05-19T20:36:54.709675Z", "shell.execute_reply": "2026-05-19T20:36:54.708952Z" } }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Info in : created default TCanvas with name c1\n" ] } ], "source": [ "auto d = new TDiamond(.05, .1, .95, .8);\n", "d->AddText(\"A TDiamond can contain any text.\");\n", "d->Draw();" ] }, { "cell_type": "markdown", "id": "8310ffaf", "metadata": {}, "source": [ "Draw all canvases " ] }, { "cell_type": "code", "execution_count": 2, "id": "6bb80444", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:36:54.711151Z", "iopub.status.busy": "2026-05-19T20:36:54.711023Z", "iopub.status.idle": "2026-05-19T20:36:54.920267Z", "shell.execute_reply": "2026-05-19T20:36:54.919841Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "
\n", "
\n", "\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "gROOT->GetListOfCanvases()->Draw()" ] } ], "metadata": { "kernelspec": { "display_name": "ROOT C++", "language": "c++", "name": "root" }, "language_info": { "codemirror_mode": "text/x-c++src", "file_extension": ".C", "mimetype": " text/x-c++src", "name": "c++" } }, "nbformat": 4, "nbformat_minor": 5 }