Very simple plotter write in Java