fix diameter being calculated incorrectly
let matplotlib figure out the plot ranges
fix various path/QString related bugs