Hi, I am building a program which plots data from an Nx3 array - the first column being X-axis data and the other two being two sets of Y-axis data. The desired output is a JFrame with two curves plotted on a graph - one black and one red. Because the program does not know how large the array is until it is inputted, the plot must be scaled to fit within the JFrame. I am also adding text to the axes, but have not completely implemented this yet.
The problem: I am having trouble getting Graphics2D to display the plots. The way I am making the plots is assigning points from the scaled arrays and utilizing Line2D to connect the points. My Implementation so far - the main class, the class containing paintComponent, and a
test suite - are shown below. Please note that the axisScale method and some of the arrays are for text display, and have not yet been implemented in the PlotBuild class.
Any advice about how to proceed from here is greatly appreciated. Thank you in advance!