前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用Matplotlib 3D for JAVA画三维点阵图

使用Matplotlib 3D for JAVA画三维点阵图

作者头像
演化计算与人工智能
发布2020-12-15 10:43:37
1.4K0
发布2020-12-15 10:43:37
举报

Evacloud

  • 组件下载及项目地址:

码云: https://www.gitee.com/tanling8334/Matplot3D-for-Java

Github: https://www.github.com/tanling8334/Matplot3D-for-Java

  • 双击demo 即可运行示例代码
  • 示例
  • 注意:如果发生了包错误,删除所有import,然后再次重新引入函数位置
代码语言:javascript
复制
import java.util.ArrayList;

import tanling.matplot_4j.d3d.base.speg.Point3D;
import tanling.matplot_4j.d3d.facade.MatPlot3DMgr;

public class testdemo {

    public static void main(String[] args) throws Exception {

        MatPlot3DMgr mgr = new MatPlot3DMgr();

        mgr.setDataInputType(MatPlot3DMgr.DATA_TYPE_DOTS);

        //*************************************************************//
        //Add your data here
        Point3D a = new Point3D(1, 1, 1);
        Point3D b = new Point3D(2, 2, 2);
        Point3D c=new Point3D(3,3,3);

        ArrayList<Point3D> aa = new ArrayList<>();
        aa.add(a);
        aa.add(b);
        aa.add(c);

        mgr.addData("Item 1", aa);



        mgr.addData("Item 1", aa);
//        mgr.addData("Item 2", new ArrayList<Point3D>());
//        mgr.addData("Item 3", new ArrayList<Point3D>());
        //.................

        mgr.setScaleX(1.2);
        mgr.setScaleY(1.2);
        mgr.setScaleZ(1.2);

        mgr.setSeeta(0.6);
        mgr.setBeita(1.0);

        mgr.setTitle("Demo");

        mgr.getProcessor().setCoordinateSysShowType(mgr.getProcessor().COORDINATE_SYS_ALWAYS_FURTHER);

        mgr.show();
    }

}
本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2020-12-10,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 DrawSky 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
图像处理
图像处理基于腾讯云深度学习等人工智能技术,提供综合性的图像优化处理服务,包括图像质量评估、图像清晰度增强、图像智能裁剪等。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档