get_font_size

visualife.core.styles.get_font_size(x)

Return a size from a real value argument

This function is used by plotting methods to convert a computed real value to nicely looking font

Parameters:x – a real value that will be rounded to a nearest font size
Returns:font size (integer)