简体   繁体   English

如何使用 PyQt5 编辑 PlotWidget 的样式参数

[英]How to edit styling parameters of a PlotWidget with PyQt5

How can I edit several styling parameters of a PlotWidget in PyQt5?如何在 PyQt5 中编辑 PlotWidget 的几个样式参数? That is, I can't figure out how to change the title, the axis labels, grid, background color, legend style and position, ticks, scale, etc. Is there anything analogous to matplotlib's library like ax.set_xlabel() and all the other methods?也就是说,我不知道如何更改标题、轴标签、网格、背景颜色、图例样式和 position、刻度、比例等。有什么类似于 matplotlib 的库,如ax.set_xlabel()和所有其他方法? I can't find any useful information anywhere.我在任何地方都找不到任何有用的信息。

Since it's tagged as pyqtgraph, I assume it's about this library and not vanilla PyQt5.由于它被标记为 pyqtgraph,我认为它是关于这个库而不是 vanilla PyQt5。

Official pyqtgraph documentation pyqtgraph 官方文档

Downloadable reference guide 可下载的参考指南

pyqtgraph at Google Groups Google Groups 上的 pyqtgraph

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM