问题
I place a widget in Qt Creator and promote it to a PyQtGraph PlotWidget. I'd like to use a custom AxisItem with that widget. Is there any way to replace the existing axis or do I have to subclass PlotWidget?
回答1:
There is not currently a way to replace an existing axis; use a subclass as you suggested.
来源:https://stackoverflow.com/questions/18373714/can-i-replace-an-axisitem-on-a-qt-creator-promoted-pyqtgraph-widget