Package peppy :: Package lib :: Module plotter :: Class MultiPlotter
[frames] | no frames]

Class MultiPlotter

     object --+                    
              |                    
wx._core.Object --+                
                  |                
wx._core.EvtHandler --+            
                      |            
        wx._core.Window --+        
                          |        
          wx._windows.Panel --+    
                              |    
         wx.lib.plot.PlotCanvas --+
                                  |
                     object --+   |
                              |   |
               debug.debugmixin --+
                                  |
                                 MultiPlotter
Known Subclasses:

Plot control that can handle multiple PlotProxy objects

Instance Methods
EvtHandler
__init__(self, parent, id=-1, proxy=None, grid=True, legend=True, fullscale=True, statusbarframe=None)
Constructs a panel, which can be a child of a frame or any other non-control window
 
setup(self)
 
resetDefaults(self)
Just to reset the fonts back to the PlotCanvas defaults
 
setProxy(self, proxy, clear=True)
Adds the PlotProxy, clearing the previous list of proxies by default.
 
addProxy(self, proxy)
Add the PlotProxy to the current list of proxies.
 
getExtrema(self, extrema)
From a list of (min,max) pairs, return the overall min and max from the list.
 
getXAxis(self)
 
getYAxis(self)
 
setYAxis(self, values)
 
updateExtrema(self)
 
update(self)
Force the control to recreate its list of lines and redraw itself.
 
show(self)
 
findNearest(self, x, y)
Find the nearest point to the cursor.
 
OnMotion(self, evt)
Show the crosshair if the left button is down.
 
OnMouseLeftDown(self, evt)
Start the crosshair display on left button press.
 
OnMouseLeftUp(self, evt)
Stop the crosshair display
 
drawPointLabel(self, dc, nearest)

Inherited from wx.lib.plot.PlotCanvas: Clear, Draw, GetClosestPoint, GetClosestPoints, GetClosetPoint, GetEnableDrag, GetEnableGrid, GetEnableLegend, GetEnablePointLabel, GetEnableTitle, GetEnableZoom, GetFontSizeAxis, GetFontSizeLegend, GetFontSizeTitle, GetGridColour, GetPointLabelFunc, GetShowScrollbars, GetUseScientificNotation, GetXCurrentRange, GetXMaxRange, GetXSpec, GetXY, GetYCurrentRange, GetYMaxRange, GetYSpec, OnLeave, OnMouseDoubleClick, OnMouseRightDown, OnPaint, OnScroll, OnSize, PageSetup, PositionScreenToUser, PositionUserToScreen, PrintPreview, Printout, Redraw, Reset, SaveFile, ScrollRight, ScrollUp, SetCursor, SetEnableDrag, SetEnableGrid, SetEnableLegend, SetEnablePointLabel, SetEnableTitle, SetEnableZoom, SetFontSizeAxis, SetFontSizeLegend, SetFontSizeTitle, SetGridColour, SetPointLabelFunc, SetShowScrollbars, SetUseScientificNotation, SetXSpec, SetYSpec, UpdatePointLabel, Zoom, getLogScale, setLogScale

Inherited from wx._windows.Panel: Create, SetFocusIgnoringChildren, __repr__

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDefaultAttributes, GetDropTarget, GetEffectiveMinSize, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetGtkWidget, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HitTest, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsShown, IsShownOnScreen, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PrepareDC, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SendSizeEvent, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.Object: GetClassName, IsSameAs

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

Class Methods

Inherited from debug.debugmixin: dprint

Static Methods

Inherited from wx._windows.Panel: GetClassDefaultAttributes

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, NextControlId, PrevControlId

Class Variables

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from wx._windows.Panel: thisown

Inherited from wx._core.Window: AcceleratorTable, AutoLayout, BackgroundColour, BackgroundStyle, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, EffectiveMinSize, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, GtkWidget, Handle, HelpText, Id, Label, LayoutDirection, MaxHeight, MaxSize, MaxWidth, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, TopLevel, TopLevelParent, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from object: __class__

Method Details

__init__(self, parent, id=-1, proxy=None, grid=True, legend=True, fullscale=True, statusbarframe=None)
(Constructor)

 

Constructs a panel, which can be a child of a frame or any other non-control window

Returns: EvtHandler
Overrides: object.__init__
(inherited documentation)

setProxy(self, proxy, clear=True)

 

Adds the PlotProxy, clearing the previous list of proxies by default.

Unless clear is False, this will reset the list of proxies to only contain the specified PlotProxy object.

findNearest(self, x, y)

 

Find the nearest point to the cursor.

Instead of using a euclidian distance calculation, use a faster method by first limiting the points to those closest to the cursor in the x direction. Then, chose the one closest in the y direction.

OnMotion(self, evt)

 

Show the crosshair if the left button is down.

Overrides: wx.lib.plot.PlotCanvas.OnMotion

OnMouseLeftDown(self, evt)

 

Start the crosshair display on left button press.

Overrides: wx.lib.plot.PlotCanvas.OnMouseLeftDown

OnMouseLeftUp(self, evt)

 

Stop the crosshair display

Overrides: wx.lib.plot.PlotCanvas.OnMouseLeftUp