-
Notifications
You must be signed in to change notification settings - Fork 9
Running SuperPlot
Within a terminal, navigate to the superpy/SuperPlot directory and invoke SuperPlot with
python SuperGUI.py
A file-browser should appear. Choose a MultiNest text file, for example, the SB_MO_log_allpost.txt file within the superpy/example directory. Loading the text file can take a minute or two.
SuperPlot attempts to match the columns in your chosen text file to the parameter names in ParamNames.py. If that fails, as in this case, a second file browser will appear from which you should choose an information file that contains the parameter names, for example, the SB_MO_log_all.info file within the superpy/example directory.
If SuperPlot cannot match the parameter names in the information file to the columns in your chosen text file, it will label the columns with integers, starting from 0.
The SuperPlot GUI should appear. I hope it is self-explanatory. From the drop-down menus, select the plot type and the variables to be plotted. To alter e.g. the labels and titles, edit the text boxes. To set the plot limits, enter a comma separated list of four numbers - xmin, xmax, ymin, ymax.
Finally, press the sixth box, a button labeled Make Plot. Your plot should appear on the right-hand-side. If you are happy with it, click Save plot, and select a file name.
If you repeat this process, you might notice a *.pkl file with a name that matches your chosen text file, in our case SB_MO_log_allpost.pkl. This pickled chain is much faster to load in SuperPlot.