The three attached scripts were, essentially, used to produce the figure in the previous post, in Matlab.
To use them (after downloading and saving in a suitable directory):
1) Edit the script calculate_overlap_populations.py. Probably you only need to change line 4, to give the correct name of the checkpoint file
2) Run the script, and pipe the output to a file, say "op.out"
3) In Matlab, edit the script op_plot.m, in particular line 4 to point to the relevant output file (op.out), and run it. You probably will need to play around with the parameters on lines 6-14 to get a nice plot
Hope it works for you! In the future, this should be possible to do in VNL.