How to make multiple axis in dock?

25 views
Skip to first unread message

손손원준

unread,
May 16, 2018, 6:59:31 PM5/16/18
to pyqtgraph
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!

Luke Campagnola

unread,
Jun 12, 2018, 6:32:11 PM6/12/18
to pyqt...@googlegroups.com
For your main question: I'm not following your description of the problem. It might be easier if you can post a minimal working example that demonstrated the problem.

For the licensing question: I have not found clear answers to these questions; I would recommend asking the pyqt folks how they intended their licenses to be interpreted. You can also check out PySide for a lighter legal experience.

--
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 pyqtgraph+unsubscribe@googlegroups.com.
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 all
Reply to author
Forward
0 new messages