Create plotting file