http://www.java2s.com/Code/Java/Chart/JFreeChartNormalDistributionDemo.htm
NormalDistribution就是正太分布的意思建议以后此类问题 都去官网查找demo
一般来说都有完备的例子的
NormalDistribution就是正太分布的意思建议以后此类问题 都去官网查找demo
一般来说都有完备的例子的
解决方案 »
- public InvocationTargetException(Throwable target)
- 怎么样写才能在jsp页面中调用这个js树形
- 一个对象池的问题
- 请问<html:multibox 能够设为默认选择吗?谢谢
- jms的初级问题,希望有经验的朋友指点一二
- jsp读取txt或Excel 文件内容存入SQL2000 数据库中, 从SQL2000 数据库中读取数据到txt或Excel里
- 求助!!! mail.jar的java文件
- jersey 配置问题
- 对于BMP的自动增加列的问题
- 文件上传下载抛出Can not find a java.io.InputStream with the name [inputStream]
- webservice简单问题,急需解答
- try{}catch(){}的问题
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.function.Function2D;
import org.jfree.data.function.NormalDistributionFunction2D;
import org.jfree.data.general.DatasetUtilities;
import org.jfree.data.xy.XYDataset;
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;/**
* This demo shows a normal distribution function.
*/
public class NormalDistributionDemo extends ApplicationFrame { /**
* A demonstration application showing a normal distribution.
*
* @param title the frame title.
*/
public NormalDistributionDemo(final String title) { super(title);
Function2D normal = new NormalDistributionFunction2D(0.0, 1.0);
XYDataset dataset = DatasetUtilities.sampleFunction2D(normal, -5.0, 5.0, 100, "Normal");
final JFreeChart chart = ChartFactory.createXYLineChart(
"XY Series Demo",
"X",
"Y",
dataset,
PlotOrientation.VERTICAL,
true,
true,
false
); final ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
setContentPane(chartPanel); } // ****************************************************************************
// * JFREECHART DEVELOPER GUIDE *
// * The JFreeChart Developer Guide, written by David Gilbert, is available *
// * to purchase from Object Refinery Limited: *
// * *
// * http://www.object-refinery.com/jfreechart/guide.html *
// * *
// * Sales are used to provide funding for the JFreeChart project - please *
// * support us so that we can continue developing free software. *
// ****************************************************************************
/**
* Starting point for the demonstration application.
*
* @param args ignored.
*/
public static void main(final String[] args) { final NormalDistributionDemo demo = new NormalDistributionDemo("Normal Distribution Demo");
demo.pack();
RefineryUtilities.centerFrameOnScreen(demo);
demo.setVisible(true); }}