本文介绍了gnuplot和Matplotlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用 Tomcat 日志的项目. //gnuplot-py.sourceforge.net/"rel =" noreferrer> gnuplot-py ,专门将特定请求与内存分配和垃圾回收相关联.是什么关于gnuplot-py与 Matplotlib 的集体智慧,用于Python图形化.我还没有听说过更好的图形库吗?

I've started on a project graphing Tomcat logs using gnuplot-py, specifically correlating particular requests with memory allocation and garbage collection. What is thecollective wisdom on gnuplot-py vs Matplotlib for Python graphing. Are there better graphing libraries out there I haven't heard of?

我的一般考虑因素是:

  • 尽管gnuplot有大量文档,但gnuplot-py没有. Matplotlib的文档社区有多好?
  • 是否有gnuplot可以做的事情,但是gnuplot-py无法做到?
  • Matplotlib是否具有更好的Python支持?
  • 在这两个节目中都有大型表演阻止错误吗?烦恼?
  • 当前gnuplot正在绘制100,000个点,我计划将其扩展到数百万.我应该期待问题吗? Matplotlib处理得如何?
  • 易于使用,gnuplot与Matplotlib的周转时间如何?
  • 将现有gnuplot-py代码移植到Matplotlib有多容易?

您将如何完成这项任务?

How would you approach this task?

推荐答案

  • 您可以自己查看 matplotlib的文档.我觉得它很全面.
  • 我对gnuplot-py的经验很少,所以我不能说它是否可以完成gnuplot所能做的一切.
  • Matplotlib是为Python编写的并且专门为Python设计的,因此非常适合Python惯用语等.
  • Matplotlib是一个成熟的项目.美国航空航天局将其用于某些用途.
  • 我已经在Matplotlib中绘制了数千万个点,它看起来仍然很漂亮并且响应迅速.
  • 使用Matplotlib的面向对象方法之外,还有pylab接口,它使绘制与在MATLAB中一样容易,即非常简单.
  • 关于从gnuplot-py移植到matplotlib的问题,我不知道.
    • You can check matplotlib's documentation yourself. I find it quite comprehensive.
    • I have very little experience with gnuplot-py, so I can not say whether it can do all gnuplot can.
    • Matplotlib is written in and designed specifically for Python, so it fits very nicely with Python idioms and such.
    • Matplotlib is a mature project. NASA uses it for some stuff.
    • I've plotted tens of millions of points in Matplotlib, and it still looked beautiful and responded quickly.
    • Beyond the object-oriented way of using Matplotlib is the pylab interface, which makes plotting as easy as it is in MATLAB -- that is, very easy.
    • As for porting from gnuplot-py to matplotlib, I have no idea.
    • 这篇关于gnuplot和Matplotlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 05:22