Skip to Content
Java数据科学实战
book

Java数据科学实战

by Michael R. Brzustowicz, PhD
January 2020
Intermediate to advanced
202 pages
5h 41m
Chinese
Posts & Telecom Press
Content preview from Java数据科学实战
数据的输入与输出
|
21
现在不对坐标轴进行标记,一个月后,你将记不得它们代表什么了。
数据可视化的第三类消费者是其他所有人。现在是发挥创造性以及艺术性的时候了,因为
仔细选择颜色和样式可以使好的数据显得更棒。然而要小心的是,你需要花费大量的时间
以及精力来为这个层次的消费者准备图形。采用
JavaFX
的额外好处是,通过鼠标选项可
以实现交互性。这使得你可以构造出图形应用,它类似于人们所习惯的众多基于
Web
的仪
表盘。
1.6.1
 创建简单图形
在
JavaFX
包中,
Java
自带图形能力。从
1.8
版本起,借助于
javafx.scene.chart
包,可
以用多种类型的图表进行科学绘图,例如散点图、折线图、条形图、堆叠条形图、饼图、
面积图、堆叠面积图或者气泡图。
Stage
对象包含
Scene
对象,
Scene
对象包含
Chart
对
象。一般形式是采用
Application
扩展可执行的
Java
类,并把所有绘制命令放在重写的
Application.start()
方法中。必须在
main
方法中调用
Application.launch()
方法,以创
建并显示图表。
1.
散点图的绘制
简单绘图的一个例子是散点图,它把一系列
x
-
y
对的数字绘制成网格上的点。这些图利
用了
javafx.scene.chart.XYChart.Data
与
javafx.scene.chart.XYChart
.
Series
两个类。
Data
类是容器,它可容纳任何规模的混合类型的数据,
Series
类包含内容为
Data
实例的
ObservableList
。在 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python计算机视觉和自然语言处理

Python计算机视觉和自然语言处理

Posts & Telecom Press, Álvaro Morena Alberolaï, Gonzalo Molina Gallegoï, Unai Garay Maestreï
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉

Publisher Resources

ISBN: 9787115533302