By looking at
MultiplePlotAxes, I was able to generate multiple axis plot. But the thing is, after I plug my main axis into dock, my second plot stays outside of the axis.
seems like p3.setGeometry(p1.vb.sceneBoundingRect()) <- sceneBoundingRect() returns boundingrect of viewbox before plugged into the dock.
I tried to find how much do they shrink when they get in dock, but I was not able to find it.
Can someone help me how should I fit my second axis into dock?
When I add it to dock,
def setframe(p, width = 4):
layout=QtGui.QHBoxLayout()
layout.addWidget(p)
frame = QtGui.QFrame()
frame.setLayout(layout)
frame.setFrameStyle(QtGui.QFrame.Box | QtGui.QFrame.Sunken)
frame.setLineWidth(width)
return frame
I first make frame
and self.dbeta.addWidget(frame)
and area=DockArea()
area.addDock(self.dbeta)
self.setCentralWidget(area) <- I'm using MainWindow class of pyqt.
Side question : if I installed pyqt and used PyQtgraph, (I didn't explicitly call PyQt.QtGui, but call pyqtgraph.Qt.QtGui etc), is my app under LGPL or GPL?
Thank you!