Conversion for vertical alignment. Matplotlib alignments differ from HTML alignments.