plot2.cc - added log graph of purity