{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "### Import the plot creator" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# Set up the path to SModelS installation folder\n", "import sys,os\n", "sys.path.append(\".\")\n", "import smodels_paths\n", "from smodels.tools.interactivePlots import makePlots\n", "import smodels" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Define the input folders, the parameters file and where to store the plots" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "smodelsOutput = os.path.join(os.path.dirname(smodels.__file__), '../inputFiles/scanExample/smodels-output')\n", "slhaFiles = os.path.join(os.path.dirname(smodels.__file__), '../inputFiles/scanExample/slha')\n", "parameters = os.path.join(os.path.dirname(smodels.__file__), '../iplots_parameters.py')\n", "outputFolder = './iplots'\n", "npoints = -1 #If negative will use all the points in the folders" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Create plots" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO in interactivePlots.loadParameters() in 64: Reading parameters from ../../../../smodels/../iplots_parameters.py ...\n", "INFO in interactivePlots.loadData() in 195: Reading data folders ../../../../smodels/../inputFiles/scanExample/smodels-output and ../../../../smodels/../inputFiles/scanExample/slha ...\n", "INFO in interactivePlots.makePlots() in 237: Making plots...\n", "INFO in interactivePlots.makePlots() in 277: Generation of interactive plots finished. Go to: \n", " ./iplots/index.html \n", " to see the plots.\n" ] } ], "source": [ "plotsOutput = makePlots(smodelsOutput,slhaFiles,outputFolder,parameters,npoints,verbosity='info')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Display the output" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "from IPython.core.display import display,HTML" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Smodels interactive plots.MT_asym_xsec: non-excluded all excluded
MT_total_xsec: non-excluded all excluded
MT_long_xsec: non-excluded all excluded
Analysis: non-excluded all excluded
MT_max_xsec: non-excluded all excluded
MT_max: non-excluded all excluded
chi2: non-excluded all excluded
Tx: non-excluded all excluded
r_max: non-excluded all excluded
" ], "text/plain": [ "