如何为matplotlib创建前端? [英] How can I create a frontend for matplotlib?

查看:123
本文介绍了如何为matplotlib创建前端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得我应该以提及我是化学工程师而不是训练有素的程序员(但我愿意学习)为起点.

I feel that I should start this question by mentioning that I am a Chemical Engineer and not a trained programmer (but I am willing to learn).

我处理了很多光谱,它们实际上是由光谱仪专用软件生成的具有x,y坐标的ASCII文件.用于分析的标准软件是起源于 Originlab 的软件,但我发现它不是用户友好的,它具有更多功能功能超出了我的需要,而且不是免费的.

I process a lot of spectra, which are essentially ASCII files with x,y coordinates produced by spectrometer specific software. A standard software used for analysis is Origin from Originlab but I find it is not user friendly, it has a lot more functions than I need and it is not free.

因此,我希望有一种方法可以开发matplotlib的前端,该前端允许将matplotlib与GUI一起使用.我希望能够从ASCII文件中读取和绘制数据,放大和缩小绘图,调用脚本以进行诸如峰值检测和拟合函数之类的事情,这些函数可以在GUI中输入特定于函数的参数.

So I was hoping that there is a way to develop a frontend for matplotlib that allows to use matplotlib with a GUI. I want to be able to read in and plot data from ASCII files, zoom in and out in the plot, call scripts for things such as peak-detection and fitting functions where function specific parameters can be entered in the GUI.

我完全不知道从哪里开始,所以问题实际上是: 为matplotlib开发前端/GUI的最简单方法是什么,该方法可以使我对上面提到的内容进行编程?而且,最终,跨平台应用程序将是不错的选择,因为我们小组中的许多人都在Windows中工作.

I am simply puzzled where to start, so the question really is: What is the easiest way to develop a frontend/GUI for matplotlib that allows me to program the things that I mentioned above? Also, ultimately, a cross platform application would be nice because many in my group work in Windows.

推荐答案

还可以从Eli Bendersky的网站中查看良好的示例:

Check out also good examples from Eli Bendersky's website:

  • matplotlib with PyQt GUIs
  • More PyQt plotting demos
  • matplotlib with wxPython GUIs

这篇关于如何为matplotlib创建前端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆