substitute platform_type with variable platform

a  fix for the broken link to the plots.   please review