I also have this problem. But the issue seems to go much deeper. By default all of my QWidgets get a size or sizeHint of of 640x480. Even if the first thing I do is set QMainWindow size before adding anything to the window the QWidgets are the same default size. I've tried to travel down the rabbit hole and I've tried every setGeometry(), setSize(), setSizeHint() I could find with no change.
There has to be a secret size keyhole somewhere... On Friday, August 5, 2016 at 7:35:25 AM UTC-4, [email protected] wrote: > > Hi, > > I am creating a GraphicsLayoutWidget and then using addPlot() to add plots > to the widget. This widget is not displayed on the screen but used to > export image by using: > > exporter = pyqtgraph.exporters.ImageExporter(pwidget.scene()) > exporter.export(os.path.join(datadirtemp, str(typename) + '.png')) > > But the images are never covering the whole plot. > > Also, using the below item does not help: > exporter.parameters()['width'] = > pwidget.scene().sceneRect().width() > > pwidget.scene() has correct dimensions but pwidget doesnot. > -- 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/5018f8b6-3936-44d3-b7ef-f121856ae6d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
