如何绘制3维数组?
我有从云应用程序的 Web 服务器日志生成的三维数据数组。该数据由每个服务器日志中针对特定请求(例如,GET /login.php 或 POST /update.php)的每周计数组成。
第一个维度的标头包含服务器名称。
第二个维度的标头包含请求类型。
第三维的标题包含特定的周。
数据只是一个数字(计数)。
例如,对于三台服务器,两种请求类型,持续两周,
SERVER REQUEST WEEK COUNT
1 1 1 1234
1 1 2 5678
1 2 1 9012
1 2 2 3456
2 1 1 7890
2 1 2 1234
2 2 1 5678
2 2 2 9012
3 1 1 3456
3 1 2 7890
3 2 1 1234
3 2 2 5678
有哪些程序/库可以绘制这些数据的图表(例如,在表面上展开的条形图)?
是否有一种文件格式可以轻松地允许将此数据用于多个程序/库?
操作系统/语言并不重要。
I have three dimensional array of data that is generated from web server logs for my cloud application. The data consists of a weekly count from each server's log for a particular request (e.g., GET /login.php or POST /update.php).
The header of the first dimension contains the server names.
The header of the second dimension contains the request types.
The header of the third dimension contains the particular weeks.
The data is just a number (the count).
E.g., for three servers, for two request types, and for two weeks,
SERVER REQUEST WEEK COUNT
1 1 1 1234
1 1 2 5678
1 2 1 9012
1 2 2 3456
2 1 1 7890
2 1 2 1234
2 2 1 5678
2 2 2 9012
3 1 1 3456
3 1 2 7890
3 2 1 1234
3 2 2 5678
What are some programs/libraries that will graph this data (e.g., in bar charts spread out over a surface)?
Is there a file format that will easily allow to use this data for multiple programs/libraries?
OS/language does not matter.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的数据有 4 个维度(服务器名称、请求类型、周、计数),而不是 3 个。将其可视化会很困难。
除非您想使用时间作为第四维(使用某种动画图表),否则我会为服务器名称/请求类型、服务器名称/周和请求类型/周创建图表,并显示聚合计数(只需添加值对于“缺失”的维度)。
Gnuplot 或 R 项目 可以渲染一些令人惊叹的图表,并且都是开源的。
Your data has 4 dimensions (server name, request type, week, count), not 3. Visualizing this is going to be difficult.
Unless you want to use time as a 4th dimension (using some kind of animated graph), I'd create graphs for server name/request type, server name/week and request type/week and display the aggregated count (just adding the values for the "missing" dimension).
Gnuplot or the R project can render some amazing graphs and are both open source.
Frank 对 GnuPlot 和 R 的建议很好。此外,您还可以查看 ggobi,它具有一些针对高维数据的可视化效果。
Frank's suggestions of GnuPlot and R are good ones. In addition, you might look at ggobi, which has some visualizations for higher dimensional data.
有一组图可以显示 3D 矩阵 a[i,j,k]:等值面、等高线或切片处的密度图、云图。 在这里您可以查看 MathGL(GPL 绘图库)。
There are a set of plots which can display 3D matrix a[i,j,k]: isosurfaces, contours or density plot at slice(s), cloud plot. Here you can look on the samples produced by MathGL (GPL plotting library).