当前位置: 首页>>代码示例>>Java>>正文


Java Plot3DPanel.setLegendOrientation方法代码示例

本文整理汇总了Java中org.math.plot.Plot3DPanel.setLegendOrientation方法的典型用法代码示例。如果您正苦于以下问题:Java Plot3DPanel.setLegendOrientation方法的具体用法?Java Plot3DPanel.setLegendOrientation怎么用?Java Plot3DPanel.setLegendOrientation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.math.plot.Plot3DPanel的用法示例。


在下文中一共展示了Plot3DPanel.setLegendOrientation方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: main

import org.math.plot.Plot3DPanel; //导入方法依赖的package包/类
public static void main(String[] args) {
    Plot3DPanel plotpanel = new Plot3DPanel();
    for (int i = 0; i < 1; i++) {
        double[][] receiverXYZ = new double[100][6];
        for (int j = 0; j < receiverXYZ.length; j++) {
            receiverXYZ[j][0] = /*1 + */ Math.random();
            receiverXYZ[j][1] = /*100 * */ Math.random();
            receiverXYZ[j][2] = /*100 * */ Math.random();
            receiverXYZ[j][3] = /*1 + */ Math.random() / 10;
            receiverXYZ[j][4] = /*100 * */ Math.random() / 10;
            receiverXYZ[j][5] = /*100 * */ Math.random() / 10;
        }
        int receiverPlotDataIndex = plotpanel.addBoxPlot("Receivers", Color.orange, receiverXYZ);
    }

    plotpanel.setLegendOrientation(PlotPanel.SOUTH);
    new FrameView(plotpanel).setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
 
开发者ID:Cvarier,项目名称:2D-Elliptic-Mesh-Generator,代码行数:19,代码来源:BoxPlot3D.java

示例2: main

import org.math.plot.Plot3DPanel; //导入方法依赖的package包/类
public static void main(String[] args) {
    Plot3DPanel p = new Plot3DPanel();

    //triangular random cloud (as sum of two uniform random numbers)
    double[][] cloud = new double[100][3];
    for (int i = 0; i < cloud.length; i++) {
        cloud[i][0] = Math.random() + Math.random();
        cloud[i][1] = Math.random() + Math.random();
        cloud[i][2] = Math.random() + Math.random();
    }
    p.addCloudPlot("cloud", Color.RED, cloud, 3, 3, 3);

    double[][] cloud2 = new double[100][3];
    for (int i = 0; i < cloud.length; i++) {
        cloud2[i][0] = 2 + Math.random() + Math.random();
        cloud2[i][1] = 2 + Math.random() + Math.random();
        cloud2[i][2] = 2 + Math.random() + Math.random();
    }
    p.addCloudPlot("cloud2", Color.RED, cloud2, 3, 3, 3);

    p.setLegendOrientation(PlotPanel.SOUTH);
    new FrameView(p).setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
 
开发者ID:Cvarier,项目名称:2D-Elliptic-Mesh-Generator,代码行数:24,代码来源:CloudPlot3D.java


注:本文中的org.math.plot.Plot3DPanel.setLegendOrientation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。