{ "cells": [ { "cell_type": "markdown", "id": "75c20094", "metadata": {}, "source": [ "# hist020_TH2_draw\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:12 PM." ] }, { "cell_type": "code", "execution_count": 1, "id": "0da68d50", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:12:21.840383Z", "iopub.status.busy": "2026-05-19T20:12:21.840269Z", "iopub.status.idle": "2026-05-19T20:12:22.149876Z", "shell.execute_reply": "2026-05-19T20:12:22.149145Z" } }, "outputs": [], "source": [ "gStyle->SetOptStat(0);\n", "gStyle->SetCanvasColor(33);\n", "gStyle->SetFrameFillColor(18);\n", "TF2 *f2 = new TF2(\"f2\", \"xygaus + xygaus(5) + xylandau(10)\", -4, 4, -4, 4);\n", "Double_t params[] = {130, -1.4, 1.8, 1.5, 1, 150, 2, 0.5, -2, 0.5, 3600, -2, 0.7, -3, 0.3};\n", "f2->SetParameters(params);\n", "auto h2 = new TH2F(\"h2\", \"xygaus + xygaus(5) + xylandau(10)\", 20, -4, 4, 20, -4, 4);\n", "h2->SetFillColor(46);\n", "h2->FillRandom(\"f2\", 40000);\n", "TPaveLabel pl;" ] }, { "cell_type": "markdown", "id": "7a55a8c3", "metadata": {}, "source": [ "basic 2-d options" ] }, { "cell_type": "code", "execution_count": 2, "id": "2e16849c", "metadata": { "collapsed": false, "execution": { "iopub.execute_input": "2026-05-19T20:12:22.151896Z", "iopub.status.busy": "2026-05-19T20:12:22.151685Z", "iopub.status.idle": "2026-05-19T20:12:22.378109Z", "shell.execute_reply": "2026-05-19T20:12:22.370087Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "