Small fix to shpxy in templates

Small fix for the shpxy tag in templates. It was calculating the lenght of "xh" instead of the string in xh making the pointFormat1 too short for what was to be printed.