【问题标题】:When matplotlib is embedded in PyQt4 how are axes/subplots labelled without using pyplot?当 matplotlib 嵌入 PyQt4 时,如何在不使用 pyplot 的情况下标记轴/子图?
【发布时间】:2015-10-23 21:08:41
【问题描述】:

使用 pyplot 很容易,但显然 pyplot shouldn't be used when embedding。我找不到任何使用标签的非 pyplot 嵌入示例。

【问题讨论】:

  • 这是一个不好的问题,不是我想问的,但我不会删除它,因为已经有了答案。我的意思是询问嵌入式情节中的传说。

标签: matplotlib pyqt4


【解决方案1】:

也许你也发现了这个page。也许this 的例子有帮助。我还没有测试过,所以我不能说它是否有效。

继续使用 matplotlib 示例中的示例,子图 self.axes 中的标签可以使用 self.axes.set_xlabel(x Label")self.axes.set_ylabel("y Label") 设置。

【讨论】:

    猜你喜欢
    • 2015-08-28
    • 1970-01-01
    • 1970-01-01
    • 2011-10-21
    • 1970-01-01
    • 2015-05-31
    • 2017-11-23
    • 2015-07-21
    • 2011-12-04
    相关资源
    最近更新 更多