I need to create a 2d histogram using pig. I have created a standard histogram already using a UDF in java and xchart by xeiam (http://xeiam.com/xchart/). However I cannot find any java library for 2d histogram (I have checked probably about 20 libraries).
我需要用猪创建一个二维直方图。我已经在java中使用UDF创建了一个标准直方图,xeiam(http://xeiam.com/xchart/)创建了xchart。但是我找不到任何用于2d直方图的java库(我已经检查了大约20个库)。
If this does not exist (which I found weird) is there any way to send output from pig to some other script e.g gnuplot or R? I don't want to save the data to file and upload in order to manage this.
如果这不存在(我发现很奇怪)有没有办法将猪的输出发送到其他脚本,例如gnuplot或R?我不想将数据保存到文件并上传以便管理它。
1 个解决方案
#1
You could try using the Python wrapper and use something like matplotlib/numpy to generate plots/histograms: http://chimera.labs.oreilly.com/books/1234000001811/ch09.html
您可以尝试使用Python包装器并使用matplotlib / numpy之类的东西来生成绘图/直方图:http://chimera.labs.oreilly.com/books/1234000001811/ch09.html
#1
You could try using the Python wrapper and use something like matplotlib/numpy to generate plots/histograms: http://chimera.labs.oreilly.com/books/1234000001811/ch09.html
您可以尝试使用Python包装器并使用matplotlib / numpy之类的东西来生成绘图/直方图:http://chimera.labs.oreilly.com/books/1234000001811/ch09.html