mirror of
https://github.com/Estom/notes.git
synced 2026-02-04 02:53:57 +08:00
395 B
395 B
将Matplotlib嵌入图形用户界面中
您可以通过此处的embedding_in_SOMEGUI.py示例将Matplotlib直接嵌入到用户界面中。 目前matplotlib支持wxpython,pygtk,tkinter 和 pyqt4 / 5。
在将Matplotlib嵌入GUI时,您应该直接使用Matplotlib API而不是pylab / pyplot的继续接口,因此请查看examples / api目录,了解使用API的一些示例代码。