- made most functions in GraphPlotter which change the curvedata mutex locked, so a graph can be rendered and updated in multiple threads