I located this post
https://groups.google.com/forum/#!searchin/pyqtgraph/resize$20event%7Csort:date/pyqtgraph/CMYhSgw3d8U/bRqxsN1qAgAJ
Tried similar, however my plot item ScatterPlotItem does not have 'headLen'
def slot_viewBox_resized(self,viewBox):
length = viewBox.screenGeometry().height()
length -= self.s1.opts['headLen']
self.s1.setStyle(tailLen=length)
self.s1 = pg.ScatterPlotItem(size=2, pen=pg.mkPen(None),
brush=pg.mkBrush(255, 255, 0, 128))
File "lib\_learn\pyqtgraph\02_pyqt.py", line 57, in slot_viewBox_resized
length -= self.s1.opts['headLen']
KeyError: 'headLen'
On Monday, May 28, 2018 at 2:51:29 PM UTC-4, Al Piszcz wrote:
>
> When I resize the window frame the X, Y tick mark / scales do not change.
> Is there an event I can capture to reset the plot area or canvas area to
> the new size?
> Thank you for a great capability.
>
>
--
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/4b3028cb-b60c-4a59-a6fb-f191ca151bee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.