There's a ton of graphing libraries available for Java. Plotting libraries? Not so much. A list is availble at https://stackoverflow.com/questions/4851035/i-am-looking-for-a-plotting-library-for-java
If none of those cut it, Here's one some quick Googling found me. While I've never used it, based off it's description JMathPlot seems really good.