Performance improvements and delinting for binary phase diagram plotting. Working towards a merge commit for #3