Update detector_plot.py

the previous version does not work anymore on RHEL6