The Crosshair/Mouse interaction example catches mouse movements within the Scene Bounding Rectangle as shown here...
def mouseMoved(evt): > pos = evt[0] > if p1.sceneBoundingRect().contains(pos): > mousePoint = vb.mapSceneToView(pos) > This will include when the mouse is over the axis labels as well as when it's over the actual plot area. Is there a quick way to capture mouse movements/clicks ONLY within the plot area? Or do I need to take the Bounding Rect and remove the heights/widths of the axis labels/titles etc? -- 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/cfc94558-fc85-48ec-95e6-748b76ce5993%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
