Package reflectometry :: Package reduction :: Module canvas :: Class FigureCanvas

Class FigureCanvas

source code


Add features to the wx agg canvas for better support of AUI and faster plotting.
Instance Methods
EvtHandler
__init__(self, *args, **kw)
Initialise a FigureWx instance.
source code
 
draw(self, drawDC=None)
Render the figure using agg.
source code
 
draw_idle(self, *args, **kwargs)
Render after a delay if no other render requests have been made.
source code
 
scroll_event(self, x, y, step=1, guiEvent=None)
Backend derived classes should call this function on any scroll wheel event.
source code

Inherited from matplotlib.backends.backend_wxagg.FigureCanvasWxAgg: blit, print_figure

Inherited from matplotlib.backends.backend_agg.FigureCanvasAgg: buffer_rgba, copy_from_bbox, get_default_filetype, get_renderer, print_png, print_raw, print_rgba, restore_region, tostring_argb, tostring_rgb

Inherited from matplotlib.backends.backend_wx.FigureCanvasWx: Copy_to_Clipboard, Destroy, Printer_Init, Printer_Preview, Printer_Print, Printer_Setup, Printer_Setup2, flush_events, gui_repaint, print_bmp, print_jpeg, print_jpg, print_pcx, print_tif, print_tiff, print_xpm, start_event_loop, stop_event_loop

Inherited from matplotlib.backend_bases.FigureCanvasBase: button_press_event, button_release_event, draw_cursor, draw_event, get_supported_filetypes, get_supported_filetypes_grouped, get_width_height, idle_event, key_press_event, key_release_event, leave_notify_event, motion_notify_event, mpl_connect, mpl_disconnect, onHilite, onRemove, pick, pick_event, print_emf, print_eps, print_pdf, print_ps, print_rgb, print_svg, print_svgz, resize, resize_event, set_window_title, start_event_loop_default, stop_event_loop_default, switch_backends

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, ClientToWindowSize, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByLabel, 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, SetCursor, 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, WindowToClientSize

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__

Static Methods

Inherited from wx._windows.Panel: GetClassDefaultAttributes

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

Class Variables

Inherited from matplotlib.backends.backend_wxagg.FigureCanvasWxAgg: filetypes

Inherited from matplotlib.backends.backend_wx.FigureCanvasWx: keyvald

Inherited from matplotlib.backend_bases.FigureCanvasBase: events

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, *args, **kw)
(Constructor)

source code 

Initialise a FigureWx instance.

  • Initialise the FigureCanvasBase and wxPanel parents.
  • Set event handlers for: EVT_SIZE (Resize event) EVT_PAINT (Paint event)
Returns: EvtHandler
Overrides: object.__init__
(inherited documentation)

draw(self, drawDC=None)

source code 
Render the figure using agg.
Overrides: matplotlib.backend_bases.FigureCanvasBase.draw

draw_idle(self, *args, **kwargs)

source code 
Render after a delay if no other render requests have been made.
Overrides: matplotlib.backend_bases.FigureCanvasBase.draw_idle

scroll_event(self, x, y, step=1, guiEvent=None)

source code 
Backend derived classes should call this function on any scroll wheel event. x,y are the canvas coords: 0,0 is lower, left. button and key are as defined in MouseEvent
Overrides: matplotlib.backend_bases.FigureCanvasBase.scroll_event