Warning, /edpm/docker/eicrecon-ubuntu22-prereq/test_jsroot.ipynb is written in an unsupported language. File is not indexed.
0001 {
0002 "nbformat": 4,
0003 "nbformat_minor": 2,
0004 "metadata": {
0005 "language_info": {
0006 "name": "python",
0007 "codemirror_mode": {
0008 "name": "ipython",
0009 "version": 3
0010 }
0011 },
0012 "orig_nbformat": 2,
0013 "file_extension": ".py",
0014 "mimetype": "text/x-python",
0015 "name": "python",
0016 "npconvert_exporter": "python",
0017 "pygments_lexer": "ipython3",
0018 "version": 3
0019 },
0020 "cells": [
0021 {
0022 "cell_type": "code",
0023 "execution_count": null,
0024 "metadata": {},
0025 "outputs": [],
0026 "source": [
0027 "import ROOT\n",
0028 "%jsroot on"
0029 ]
0030 },
0031 {
0032 "cell_type": "code",
0033 "execution_count": null,
0034 "metadata": {},
0035 "outputs": [],
0036 "source": [
0037 "\n",
0038 "from ROOT import gROOT, TCanvas, TF1\n",
0039 " \n",
0040 "gROOT.Reset()\n",
0041 "c1 = TCanvas( 'c1', 'Example with Formula', 200, 10, 700, 500 )\n",
0042 " \n",
0043 "#\n",
0044 "# Create a one dimensional function and draw it\n",
0045 "#\n",
0046 "fun1 = TF1( 'fun1', 'abs(sin(x)/x)', 0, 10 )\n",
0047 "c1.SetGridx()\n",
0048 "c1.SetGridy()\n",
0049 "fun1.Draw()\n",
0050 "c1.Update()\n",
0051 "\n",
0052 " "
0053 ]
0054 }
0055 ]
0056 }