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!

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/032be5b5-7c7b-473a-b1ce-66fc452709c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to