使用JFreeChart的HeatMaps [英] HeatMaps with JFreeChart
本文介绍了使用JFreeChart的HeatMaps的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个点(x,y)的数据集,我想为该数据集创建一个热图.更具体地说,我希望图像中点集中的区域颜色较浅,而点较少的区域颜色较深. 我正在使用JFreeChart库,并且发现了一些类,例如DefaultHeatMapDataset,但是我不确定如何以正确的方式使用它们.
I have a dataset of points (x,y) and I would like to create an heatmap of this dataset. More specifically, I would like an image in which I have lighter colors in the areas where I have a bigger concentration of points and darker where there are less points. I am using JFreeChart libraries and I found some classes for example DefaultHeatMapDataset but I am not sure how to use them in the proper way.
有人知道如何做吗?
提前谢谢! 乔瓦尼
推荐答案
使用 XYZDataset
和
查看全文