Import the plot creator

In [1]:
# Set up the path to SModelS installation folder
import sys,os
sys.path.append(".")
import smodels_paths
from smodels.tools.interactivePlots import makePlots
import smodels

Define the input folders, the parameters file and where to store the plots

In [2]:
smodelsOutput = os.path.join(os.path.dirname(smodels.__file__), '../inputFiles/scanExample/smodels-output')
slhaFiles = os.path.join(os.path.dirname(smodels.__file__), '../inputFiles/scanExample/slha')
parameters = os.path.join(os.path.dirname(smodels.__file__), '../iplots_parameters.py')
outputFolder = './iplots'
npoints = -1 #If negative will use all the points in the folders

Create plots

In [3]:
plotsOutput = makePlots(smodelsOutput,slhaFiles,outputFolder,parameters,npoints,verbosity='info')
INFO in interactivePlots.loadParameters() in 64: Reading parameters from ../../../../smodels/../iplots_parameters.py ...
INFO in interactivePlots.loadData() in 195: Reading data folders ../../../../smodels/../inputFiles/scanExample/smodels-output and ../../../../smodels/../inputFiles/scanExample/slha ...
INFO in interactivePlots.makePlots() in 237: Making plots...
INFO in interactivePlots.makePlots() in 277: Generation of interactive plots finished. Go to: 
 ./iplots/index.html 
 to see the plots.

Display the output

In [4]:
from IPython.core.display import display,HTML
In [5]:
#Main page (to open the plots go to the plots output folder and open them with the browser)
mainFile = open(plotsOutput + '/index.html','r')
display(HTML(mainFile.read()))
mainFile.close()
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

In [ ]: