basic data plotter for plotting functions in java