{ "cells": [ { "cell_type": "markdown", "id": "8379c103", "metadata": {}, "source": [ "# arrows\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": "5d6e8a7d", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:36:47.998239Z", "iopub.status.busy": "2026-05-19T20:36:47.998127Z", "iopub.status.idle": "2026-05-19T20:36:48.462279Z", "shell.execute_reply": "2026-05-19T20:36:48.455993Z" } }, "outputs": [], "source": [ "auto c1 = new TCanvas(\"c1\");\n", "c1->Range(0, 0, 1, 1);\n", "\n", "auto par = new TPaveLabel(0.1, 0.8, 0.9, 0.95, \"Examples of various arrows formats\");\n", "par->SetFillColor(42);\n", "par->Draw();\n", "\n", "auto ar1 = new TArrow(0.1, 0.1, 0.1, 0.7);\n", "ar1->Draw();\n", "auto ar2 = new TArrow(0.2, 0.1, 0.2, 0.7, 0.05, \"|>\");\n", "ar2->SetAngle(40);\n", "ar2->SetLineWidth(2);\n", "ar2->Draw();\n", "auto ar3 = new TArrow(0.3, 0.1, 0.3, 0.7, 0.05, \"<|>\");\n", "ar3->SetAngle(40);\n", "ar3->SetLineWidth(2);\n", "ar3->Draw();\n", "auto ar4 = new TArrow(0.46, 0.7, 0.82, 0.42, 0.07, \"|>\");\n", "ar4->SetAngle(60);\n", "ar4->SetLineWidth(2);\n", "ar4->SetFillColor(2);\n", "ar4->Draw();\n", "auto ar5 = new TArrow(0.4, 0.25, 0.95, 0.25, 0.15, \"<|>\");\n", "ar5->SetAngle(60);\n", "ar5->SetLineWidth(4);\n", "ar5->SetLineColor(4);\n", "ar5->SetFillStyle(3008);\n", "ar5->SetFillColor(2);\n", "ar5->Draw();" ] }, { "cell_type": "markdown", "id": "6e7f0243", "metadata": {}, "source": [ "Draw all canvases " ] }, { "cell_type": "code", "execution_count": 2, "id": "ba69c5a0", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:36:48.464109Z", "iopub.status.busy": "2026-05-19T20:36:48.463953Z", "iopub.status.idle": "2026-05-19T20:36:48.712299Z", "shell.execute_reply": "2026-05-19T20:36:48.707384Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "
\n", "
\n", "\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%jsroot on\n", "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 }