created plotting mechanism with java fx