Module wxmpl :: Class SelectionEvent
[frames] | no frames]

Class SelectionEvent

source code

     object --+                
              |                
wx._core.Object --+            
                  |            
     wx._core.Event --+        
                      |        
  wx._core.CommandEvent --+    
                          |    
    wx._core.PyCommandEvent --+
                              |
                             SelectionEvent

wxPython event emitted when an area selection occurs in a matplotlib axes of a window for which zooming has been disabled. The selection is described by a rectangle from (x1, y1) to (x2, y2), of which only one point is required to be inside the axes.

Instance Methods
 
__init__(self, id, axes, x1, y1, x2, y2)
Create a new SelectionEvent for the area described by the rectangle from (x1, y1) to (x2, y2) in an axes.
source code
Event
Clone(self) source code

Inherited from wx._core.PyCommandEvent: __del__, __repr__

Inherited from wx._core.CommandEvent: Checked, GetClientData, GetClientObject, GetExtraLong, GetInt, GetSelection, GetString, IsChecked, IsSelection, SetClientData, SetClientObject, SetExtraLong, SetInt, SetString

Inherited from wx._core.Event: GetEventObject, GetEventType, GetId, GetSkipped, GetTimestamp, IsCommandEvent, ResumePropagation, SetEventObject, SetEventType, SetId, SetTimestamp, ShouldPropagate, Skip, StopPropagation

Inherited from wx._core.Object: Destroy, GetClassName

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables
  axes
matplotlib Axes which was left-clicked
  x1
matplotlib x1 coordinate
  x1data
axes x1 coordinate
  x2
matplotlib x2 coordinate
  x2data
axes x2 coordinate
  y1
matplotlib y1 coordinate
  y1data
axes y1 coordinate
  y2
matplotlib y2 coordinate
  y2data
axes y2 coordinate
Properties

Inherited from object: __class__

Method Details

__init__(self, id, axes, x1, y1, x2, y2)
(Constructor)

source code 

Create a new SelectionEvent for the area described by the rectangle from (x1, y1) to (x2, y2) in an axes.

Overrides: object.__init__

Clone(self)

source code 
Returns: Event
Overrides: wx._core.Event.Clone
(inherited documentation)