Swatch printing - How to find correct length for gradient swatch