We can use jmathplot to generate graphs http://code.google.com/p/jmathplot/