[plot] fix update_font_sizes
Purpose
Fixes #66 (closed)
Used the opportunity to use some pattern matching instead of if...else blocks. Sadly realized mypy not yet supports type narrowing with pattern matching link Thus, if we want to make use of this, we may need to type narrow manually with assertions
Edited by Florian Zill