Here is a snipit of how I display my graph, and attempt to re render with the new Y ranges.
fpe2.FPE_ExportData(outPutFilePath, xmlOutDescriptorPath);
g = new GraphUtil();
g.collectData(fpe2.subTaskType, "FPE", MaxY, MinY, PlotGraphPanel);
g.graphMake();
PlotGraphPanel.add(g.cPanel1, BorderLayout.CENTER);
PlotGraphPanel.validate();
PlotGraphPanel.repaint();