用Java绘制图表 [英] Plot Graphs in Java

查看:227
本文介绍了用Java绘制图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的Java Swing GUI需要根据程序中生成的x和y坐标绘制2D图形。



是否有Swing组件为什么?



或者是否有任何其他开源软件包用于此目的?

解决方案 div>

您应该查看具有Swing支持的 JFreeChart 。以下是一些示例:



http:/ /www.jfree.org/jfreechart/samples.html


The Java Swing GUI that I'm developing needs to plot a 2D graph based on the x and y coordinates generated in the program.

Is there a Swing component for that?

Or is there any other open source package for the purpose?

解决方案

You should check out JFreeChart which has Swing support. Here are some samples:

http://www.jfree.org/jfreechart/samples.html

这篇关于用Java绘制图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆