Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
25ec232
Added log scale options to plots
tegonzalo Mar 4, 2021
0ec8353
Copied too much
tegonzalo Mar 4, 2021
32c69d1
Again
tegonzalo Mar 4, 2021
4a683f8
Added guard for empty field
tegonzalo Mar 4, 2021
a7dbd14
Added optimised tick settings
tegonzalo Mar 5, 2021
e891985
Added the custom tick stuff as optional
tegonzalo Mar 8, 2021
6af303d
Changed minor ticks in log scale
tegonzalo Mar 10, 2021
59f5e0b
Improved ticks for nticks > 10 in log scale
tegonzalo Mar 19, 2021
17349a9
Fixed typo
tegonzalo Mar 28, 2021
515dc5e
Another bug
tegonzalo Mar 28, 2021
b682fb3
Changed all print statements to python3
tegonzalo Apr 29, 2021
cfc6884
exceptions now
tegonzalo Apr 29, 2021
758ddf6
another one
tegonzalo Apr 29, 2021
b411b38
Missed one print
tegonzalo Apr 29, 2021
1f28d65
fixed filters
tegonzalo Apr 29, 2021
d2b5aec
Changes itermitems and added future
tegonzalo Apr 29, 2021
fd69df2
Fixed case with exactly 10 ticks
tegonzalo May 3, 2021
e56433d
Changed future import
tegonzalo May 3, 2021
30f8c6b
Fixed type
tegonzalo May 4, 2021
34b3e4b
Added background to plots
tegonzalo May 5, 2021
155972e
Added blame scale
tegonzalo May 25, 2021
5fad496
Fixed typos and changed examples
tegonzalo May 25, 2021
189ed20
Fixed 1/0 problem in ticks
tegonzalo May 25, 2021
1a77f44
Removed Lambda from profile likelihood ratio label
tegonzalo May 27, 2021
58711fb
Merge https://github.com/tegonzalo/pippi into tegonzalo_test
patscott Jun 30, 2021
0066a1e
Syntax updates for python3
patscott Jun 30, 2021
fa4a559
Update axis labels in example to match new log plotting
patscott Jun 30, 2021
68cfd3e
Merge branch 'master' into tegonzalo_test
patscott Jun 30, 2021
27f8cfd
Fixed future print import to work properly in python 2.7
patscott Jun 30, 2021
0592cac
Added new colours
tegonzalo May 20, 2022
33fa271
Merge branch 'master' of https://github.com/tegonzalo/pippi
tegonzalo May 20, 2022
87fcac0
Fixed colours and bug
tegonzalo Jan 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions example/example.pip
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ assign_to_pippi_datastream = 'np.log10($2)-np.log10($3)':64 \
;Assign a python function or named hdf5 data stream to a particular pippi datastream index (use pippi probe to test; EFN)
quantity_labels = 0:'multiplicity' \
1:'-lnlike' \
2:'$\log_{10}\left(m_0/\mathrm{TeV}\right)$' \
3:'$\log_{10}\left(m_\frac12/\mathrm{TeV}\right)$' \
2:'$m_0$ (TeV)' \
3:'$m_\frac12$ (TeV)' \
4:'$A_0$ (TeV)' \
5:'$\tan\beta$' \
64:'$\log_{10}\left(m_0/m_\frac12\right)$' \
Expand All @@ -67,7 +67,8 @@ plot_colourbar_2D = {3,2} {5,4} ;2D plots that should include colour

plot_comparison = T ;Overplot distributions from comparisonFilename in 1D plots and contours in 2D plots
extra_legend_lines = 'Flat priors' 'CMSSM $\mu>0$';Additional text lines to be included in any legends (EFN)
blame = 'pippi v2.2' ;Credit line to be placed in top corner of all plots
blame_text = 'pippi v2.2' ;Credit line to be placed in top corner of all plots
blame_scale = 0.5 ;Scale of credit line, default is 0.5
yaxis_number_angle = -90 ;Angle relative to vertical for y-axis numerical labels

plot_posterior_mean_on_posterior_pdf = T ;Indicate the posterior mean in all posterior pdf plots
Expand All @@ -77,6 +78,8 @@ plot_best_fit_on_profile_like = T ;Indicate the best fit in all profil

axis_ranges = 2:{2.0,3.5} 3:{2.05,3.6} 4:{-4,4} ;Axis ranges over which to plot parameters/observables (defaults to data_ranges if absent)

custom_ticks = ;Parameters/observables that use custom ticks

reference_point = 2:3.3 3:2.5 ;Coordinates of reference point (only plotted where one of the listed axes is present)
reference_text = 'True value' ;Key string to be printed for reference point

Expand Down
5 changes: 4 additions & 1 deletion example/example_diver.pip
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ plot_colourbar_2D = ;2D plots that should include colour

plot_comparison = F ;Overplot distributions from comparisonFilename in 1D plots and contours in 2D plots
extra_legend_lines = ;Additional text lines to be included in any legends (EFN)
blame = 'pippi v2.2' ;Credit line to be placed in top corner of all plots
blame_text = 'pippi v2.2' ;Credit line to be placed in top corner of all plots
blame_scale = 0.5 ;Scale of credit line, default is 0.5
yaxis_number_angle = -90 ;Angle relative to vertical for y-axis numerical labels

plot_posterior_mean_on_posterior_pdf = F ;Indicate the posterior mean in all posterior pdf plots
Expand All @@ -69,6 +70,8 @@ plot_best_fit_on_profile_like = T ;Indicate the best fit in all profil

axis_ranges = ;Axis ranges over which to plot parameters/observables (defaults to data_ranges if absent)

custom_ticks = ;Parameters/observables that use custom ticks

reference_point = ;Coordinates of reference point (only plotted where one of the listed axes is present)
reference_text = ;Key string to be printed for reference point

Expand Down
1 change: 0 additions & 1 deletion example/pippi.pdf

This file was deleted.

41 changes: 21 additions & 20 deletions pippi
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# Originally developed: March 2012
#############################################################

from __future__ import print_function
from pippi_probe import *
from pippi_merge import *
from pippi_pare import *
Expand All @@ -37,41 +38,41 @@ def main(arguments):
#Check if pippi has been invoked with one of the five known specific commands
command = commandLineOptions[arguments[1]]
if not command in [merge, pare]:
print
print 'Beginning pippi '+arguments[1]+' operation...'
print()
print('Beginning pippi '+arguments[1]+' operation...')
try:
command(arguments[2:])
except BaseException as err:
print
print 'Running pippi failed in '+command.__name__+' operation, due to error:'
print err
print
print()
print('Running pippi failed in '+command.__name__+' operation, due to error:')
print(err)
print()
sys.exit()
if not command in [merge, pare]:
print
print 'Completed sucessfully.'
print
print()
print('Completed sucessfully.')
print()
except KeyError:
#Otherise check if it has been invoked with just a filename
if os.path.isfile(arguments[1]):
print
print 'Beginning pippi parse-to-plot operation...'
print()
print('Beginning pippi parse-to-plot operation...')
for command in [parse, script, plot]:
try:
command(arguments[1:])
except BaseException as err:
print
print 'Running pippi failed in '+command.__name__+' operation.'
print err
print
print()
print('Running pippi failed in '+command.__name__+' operation.')
print(err)
print()
sys.exit()
print
print 'Completed sucessfully.'
print
print()
print('Completed sucessfully.')
print()
else:
#Otherwise crack it and tell the user to get their shit in order
print
print 'Can\'t find file '+arguments[1]
print()
print('Can\'t find file '+arguments[1])
usage()

sys.exit()
Expand Down
Binary file removed pippi.pdf
Binary file not shown.
Loading