peikert / proteomics

package development
1 stars 0 forks source link

Scaling of column labels #36

Closed peikert closed 7 years ago

peikert commented 7 years ago

Long label are out of margin and cross the color legend when shown

gradient

numairmansur commented 7 years ago

Should be fixed now. We don't rotate the text anymore. Now we just decrease the font size to fit the text.

peikert commented 7 years ago

works fine now

peikert commented 7 years ago

Reopend: Font size not decreasing right. capture

numairmansur commented 7 years ago

Solution: Create a mathematical formula that takes 3 variables into account when calculating the font. 1) Number of columns 2) Total width of the color map 3) string length of the longest label name

numairmansur commented 7 years ago

Should be fine now. Formula that works: ( (width/1.7) / max_length ) * 1.577909

peikert commented 7 years ago

seems to work