Replace . with _ in figure and file names
Support wscale/hscale for horizontal/vertical axis scaling