Java GUI Framework Question:
Download Job Interview Questions and Answers PDF
How to generate some charts / plots in Java?
Answer:
If you want to do the drawing in Java, consider using a chart drawing library. E.g.
http://www.jfree.org/jfreechart/index.html
gets recommended often. The web site also has a list of other chart libraries.
If you just have to plot some (scientific) data, and if you can live with an external C program, consider using gnuplot
http://www.gnuplot.info/
Use System.exec() to pipe the plot commands and data into gnuplot, or just write the data to a file and use gnuplot separately.
http://www.jfree.org/jfreechart/index.html
gets recommended often. The web site also has a list of other chart libraries.
If you just have to plot some (scientific) data, and if you can live with an external C program, consider using gnuplot
http://www.gnuplot.info/
Use System.exec() to pipe the plot commands and data into gnuplot, or just write the data to a file and use gnuplot separately.
Download Java GUI Framework Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the equivalent of AWTs Canvas in Swing? | How to to write a diagram editor. How to start? |