+void MyFrame::OnPlotClick( wxPlotEvent &event )
+{
+ double x = event.GetPosition() * m_plot->GetUnitsPerValue();
+ double y = event.GetCurve()->GetY( event.GetPosition() );
+ wxLogMessage( "Clicked on curve at x coordinate: %f, value: %f", x, y );
+}
+
+void MyFrame::OnPlotDClick( wxPlotEvent &event )
+{
+ double x = event.GetPosition() * m_plot->GetUnitsPerValue();
+ double y = event.GetCurve()->GetY( event.GetPosition() );
+ wxLogMessage( "Double clicked on curve at x coordinate: %f, value: %f", x, y );
+}
+