GUI package#
seispy.pickrf.pickfigure module#
- class seispy.pickrf.pickfigure.RFFigure(rfpath, width=21, height=11, dpi=100, xlim=[-2, 30])[source]#
Bases:
Figure
- Attributes:
axes
List of Axes in the Figure.
- callbacks
dpi
The resolution in dots per inch.
frameon
Return the figure’s background patch visibility, i.e.
mouseover
Return whether this artist is queried for custom context information when the mouse cursor moves over it.
stale
Whether the artist is ‘stale’ and needs to be re-drawn for the output to match the internal state of the artist.
sticky_edges
x
andy
sticky edge lists for autoscaling.
Methods
add_artist
(artist[, clip])Add an .Artist to the figure.
add_axes
(*args, **kwargs)Add an ~.axes.Axes to the figure.
add_axobserver
(func)Whenever the Axes state change,
func(self)
will be called.add_callback
(func)Add a callback function that will be called whenever one of the .Artist's properties changes.
add_gridspec
([nrows, ncols])Return a .GridSpec that has this figure as a parent.
add_subfigure
(subplotspec, **kwargs)Add a .SubFigure to the figure as part of a subplot arrangement.
add_subplot
(*args, **kwargs)Add an ~.axes.Axes to the figure as part of a subplot arrangement.
align_labels
([axs])Align the xlabels and ylabels of subplots with the same subplots row or column (respectively) if label alignment is being done automatically (i.e.
align_xlabels
([axs])Align the xlabels of subplots in the same subplot column if label alignment is being done automatically (i.e.
align_ylabels
([axs])Align the ylabels of subplots in the same subplot column if label alignment is being done automatically (i.e.
autofmt_xdate
([bottom, rotation, ha, which])Date ticklabels often overlap, so it is useful to rotate them and right align them.
clear
([keep_observers])Clear the figure.
clf
([keep_observers])[Discouraged] Alias for the clear() method.
colorbar
(mappable[, cax, ax, use_gridspec])Add a colorbar to a plot.
contains
(mouseevent)Test whether the mouse event occurred on the figure.
convert_xunits
(x)Convert x using the unit type of the xaxis.
convert_yunits
(y)Convert y using the unit type of the yaxis.
delaxes
(ax)Remove the ~.axes.Axes ax from the figure; update the current Axes.
draw
(renderer)Draw the Artist (and its children) using the given renderer.
draw_artist
(a)Draw .Artist a only.
draw_without_rendering
()Draw the figure with no output.
execute_constrained_layout
([renderer])[Deprecated] Use
layoutgrid
to determine pos positions within Axes.figimage
(X[, xo, yo, alpha, norm, cmap, ...])Add a non-resampled image to the figure.
findobj
([match, include_self])Find artist objects.
format_cursor_data
(data)Return a string representation of data.
gca
()Get the current Axes.
get_agg_filter
()Return filter function to be used for agg filter.
get_alpha
()Return the alpha value used for blending - not supported on all backends.
get_animated
()Return whether the artist is animated.
get_axes
()List of Axes in the Figure.
get_children
()Get a list of artists contained in the figure.
get_clip_box
()Return the clipbox.
get_clip_on
()Return whether the artist uses clipping.
get_clip_path
()Return the clip path.
get_constrained_layout
()Return whether constrained layout is being used.
get_constrained_layout_pads
([relative])[Deprecated] Get padding for
constrained_layout
.get_cursor_data
(event)Return the cursor data for a given event.
get_dpi
()Return the resolution in dots per inch as a float.
get_edgecolor
()Get the edge color of the Figure rectangle.
get_facecolor
()Get the face color of the Figure rectangle.
get_figheight
()Return the figure height in inches.
get_figure
()Return the .Figure instance the artist belongs to.
get_figwidth
()Return the figure width in inches.
get_frameon
()Return the figure's background patch visibility, i.e. whether the figure background will be drawn.
get_gid
()Return the group id.
get_in_layout
()Return boolean flag,
True
if artist is included in layout calculations.get_label
()Return the label used for this artist in the legend.
get_linewidth
()Get the line width of the Figure rectangle.
get_mouseover
()Return whether this artist is queried for custom context information when the mouse cursor moves over it.
get_picker
()Return the picking behavior of the artist.
get_rasterized
()Return whether the artist is to be rasterized.
get_size_inches
()Return the current size of the figure in inches.
get_sketch_params
()Return the sketch parameters for the artist.
get_snap
()Return the snap setting.
get_tight_layout
()Return whether .tight_layout is called when drawing.
get_tightbbox
([renderer, bbox_extra_artists])Return a (tight) bounding box of the figure in inches.
get_transform
()Return the .Transform instance used by this artist.
get_transformed_clip_path_and_affine
()Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
get_url
()Return the url.
get_visible
()Return the visibility.
get_window_extent
([renderer])Get the artist's bounding box in display space.
get_zorder
()Return the artist's zorder.
ginput
([n, timeout, show_clicks, mouse_add, ...])Blocking call to interact with a figure.
have_units
()Return whether units are set on any axis.
is_transform_set
()Return whether the Artist has an explicitly set transform.
legend
(*args, **kwargs)Place a legend on the figure.
pchanged
()Call all of the registered callbacks.
pick
(mouseevent)Process a pick event.
pickable
()Return whether the artist is pickable.
properties
()Return a dictionary of all the properties of the artist.
remove
()Remove the artist from the figure if possible.
remove_callback
(oid)Remove a callback based on its observer id.
savefig
(fname, *[, transparent])Save the current figure.
sca
(a)Set the current Axes to be a and return a.
set
(*[, agg_filter, alpha, animated, ...])Set multiple properties at once.
set_agg_filter
(filter_func)Set the agg filter.
set_alpha
(alpha)Set the alpha value used for blending - not supported on all backends.
set_animated
(b)Set whether the artist is intended to be used in an animation.
set_canvas
(canvas)Set the canvas that contains the figure
set_clip_box
(clipbox)Set the artist's clip .Bbox.
set_clip_on
(b)Set whether the artist uses clipping.
set_clip_path
(path[, transform])Set the artist's clip path.
set_constrained_layout
(constrained)[Deprecated] [Discouraged] Set whether
constrained_layout
is used upon drawing.set_constrained_layout_pads
(**kwargs)[Deprecated] Set padding for
constrained_layout
.set_dpi
(val)Set the resolution of the figure in dots-per-inch.
set_edgecolor
(color)Set the edge color of the Figure rectangle.
set_facecolor
(color)Set the face color of the Figure rectangle.
set_figheight
(val[, forward])Set the height of the figure in inches.
Set the .Figure instance the artist belongs to.
set_figwidth
(val[, forward])Set the width of the figure in inches.
set_frameon
(b)Set the figure's background patch visibility, i.e. whether the figure background will be drawn.
set_gid
(gid)Set the (group) id for the artist.
set_in_layout
(in_layout)Set if artist is to be included in layout calculations, E.g.
set_label
(s)Set a label that will be displayed in the legend.
set_layout_engine
([layout])Set the layout engine for this figure.
set_linewidth
(linewidth)Set the line width of the Figure rectangle.
set_mouseover
(mouseover)Set whether this artist is queried for custom context information when the mouse cursor moves over it.
set_path_effects
(path_effects)Set the path effects.
set_picker
(picker)Define the picking behavior of the artist.
set_rasterized
(rasterized)Force rasterized (bitmap) drawing for vector graphics output.
set_size_inches
(w[, h, forward])Set the figure size in inches.
set_sketch_params
([scale, length, randomness])Set the sketch parameters.
set_snap
(snap)Set the snapping behavior.
set_tight_layout
(tight)[Deprecated] [Discouraged] Set whether and how .tight_layout is called when drawing.
set_transform
(t)Set the artist transform.
set_url
(url)Set the url for the artist.
set_visible
(b)Set the artist's visibility.
set_zorder
(level)Set the zorder for the artist.
show
([warn])If using a GUI backend with pyplot, display the figure window.
subfigures
([nrows, ncols, squeeze, wspace, ...])Add a set of subfigures to this figure or subfigure.
subplot_mosaic
(mosaic, *[, sharex, sharey, ...])Build a layout of Axes based on ASCII art or nested lists.
subplots
([nrows, ncols, sharex, sharey, ...])Add a set of subplots to this figure.
subplots_adjust
([left, bottom, right, top, ...])Adjust the subplot layout parameters.
suptitle
(t, **kwargs)Add a centered suptitle to the figure.
supxlabel
(t, **kwargs)Add a centered supxlabel to the figure.
supylabel
(t, **kwargs)Add a centered supylabel to the figure.
text
(x, y, s[, fontdict])Add text to figure.
tight_layout
(*[, pad, h_pad, w_pad, rect])Adjust the padding between and around subplots.
update
(props)Update this artist's properties from the dict props.
update_from
(other)Copy properties from other to self.
waitforbuttonpress
([timeout])Blocking call to interact with the figure.
butnext
butprevious
enlarge
finish
get_default_bbox_extra_artists
get_layout_engine
get_path_effects
init_canvas
init_figure
init_variables
onclick
plot
plotbaz
plotwave
read_sac
reduce
set_ax_baz_dis
set_page
set_ylabels
- set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, canvas=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, constrained_layout=<UNSET>, constrained_layout_pads=<UNSET>, dpi=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, figheight=<UNSET>, figwidth=<UNSET>, frameon=<UNSET>, gid=<UNSET>, in_layout=<UNSET>, label=<UNSET>, layout_engine=<UNSET>, linewidth=<UNSET>, mouseover=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, rasterized=<UNSET>, size_inches=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, tight_layout=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, zorder=<UNSET>)#
Set multiple properties at once.
Supported properties are
- Properties:
agg_filter: a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image alpha: scalar or None animated: bool canvas: FigureCanvas clip_box: .Bbox clip_on: bool clip_path: Patch or (Path, Transform) or None constrained_layout: unknown constrained_layout_pads: unknown dpi: float edgecolor: color facecolor: color figheight: float figwidth: float frameon: bool gid: str in_layout: bool label: object layout_engine: unknown linewidth: number mouseover: bool path_effects: .AbstractPathEffect picker: None or bool or float or callable rasterized: bool size_inches: (float, float) or float sketch_params: (scale: float, length: float, randomness: float) snap: bool or None tight_layout: unknown transform: .Transform url: str visible: bool zorder: float
seispy.pickrf.pickui module#
- class seispy.pickrf.pickui.MatplotlibWidget(rfpath, only_r=False, xlim=[-2, 30], order='baz', parent=None)[source]#
Bases:
QMainWindow
- Attributes:
- painters
Methods
DockOption
(value)An enumeration.
PaintDeviceMetric
(value)An enumeration.
RenderFlag
(value)An enumeration.
acceptDrops
(self)accessibleDescription
(self)accessibleName
(self)actionEvent
(self, event)actions
(self)activateWindow
(self)addAction
(...)addActions
(self, actions)addDockWidget
(-> None)addToolBar
(...)addToolBarBreak
(self[, area])adjustSize
(self)autoFillBackground
(self)backgroundRole
(self)backingStore
(self)baseSize
(self)blockSignals
(self, b)centralWidget
(self)changeEvent
(self, event)childAt
(-> PySide6.QtWidgets.QWidget)childEvent
(self, event)children
(self)childrenRect
(self)childrenRegion
(self)clearFocus
(self)clearMask
(self)close
(self)closeEvent
(self, event)colorCount
(self)connect
(...)connectNotify
(self, signal)contentsMargins
(self)contentsRect
(self)contextMenuEvent
(self, event)contextMenuPolicy
(self)corner
(self, corner)create
(self[, arg__1, initializeWindow, ...])createPopupMenu
(self)createWinId
(self)createWindowContainer
(window[, parent, flags])cursor
(self)customEvent
(self, event)deleteLater
(self)depth
(self)destroy
(self[, destroyWindow, destroySubWindows])devType
(self)devicePixelRatio
(self)devicePixelRatioF
(self)devicePixelRatioFScale
()disconnect
(...)disconnectNotify
(self, signal)dockOptions
(self)dockWidgetArea
(self, dockwidget)documentMode
(self)dragEnterEvent
(self, event)dragLeaveEvent
(self, event)dragMoveEvent
(self, event)dropEvent
(self, event)dumpObjectInfo
(self)dumpObjectTree
(self)dynamicPropertyNames
(self)effectiveWinId
(self)emit
(self, arg__1, *args)ensurePolished
(self)enterEvent
(self, event)event
(self, event)eventFilter
(self, watched, event)find
(arg__1)findChild
(self, type[, name, options])findChildren
() -> Iterable ))focusInEvent
(self, event)focusNextChild
(self)focusNextPrevChild
(self, next)focusOutEvent
(self, event)focusPolicy
(self)focusPreviousChild
(self)focusProxy
(self)focusWidget
(self)font
(self)fontInfo
(self)fontMetrics
(self)foregroundRole
(self)frameGeometry
(self)frameSize
(self)geometry
(self)grab
(self[, rectangle])grabGesture
(self, type[, flags])grabKeyboard
(self)grabMouse
(-> None)grabShortcut
(self, key[, context])graphicsEffect
(self)graphicsProxyWidget
(self)hasFocus
(self)hasHeightForWidth
(self)hasMouseTracking
(self)hasTabletTracking
(self)height
(self)heightForWidth
(self, arg__1)heightMM
(self)hide
(self)hideEvent
(self, event)iconSize
(self)inherits
(self, classname)initPainter
(self, painter)inputMethodEvent
(self, event)inputMethodHints
(self)inputMethodQuery
(self, arg__1)insertAction
(self, before, action)insertActions
(self, before, actions)insertToolBar
(self, before, toolbar)insertToolBarBreak
(self, before)installEventFilter
(self, filterObj)internalWinId
(self)isActiveWindow
(self)isAncestorOf
(self, child)isAnimated
(self)isDockNestingEnabled
(self)isEnabled
(self)isEnabledTo
(self, arg__1)isFullScreen
(self)isHidden
(self)isLeftToRight
(self)isMaximized
(self)isMinimized
(self)isModal
(self)isQuickItemType
(self)isRightToLeft
(self)isSeparator
(self, pos)isSignalConnected
(self, signal)isTopLevel
(self)isVisible
(self)isVisibleTo
(self, arg__1)isWidgetType
(self)isWindow
(self)isWindowModified
(self)isWindowType
(self)keyPressEvent
(self, event)keyReleaseEvent
(self, event)keyboardGrabber
()killTimer
(self, id)layout
(self)layoutDirection
(self)leaveEvent
(self, event)locale
(self)logicalDpiX
(self)logicalDpiY
(self)lower
(self)mapFrom
(-> PySide6.QtCore.QPoint)mapFromGlobal
(-> PySide6.QtCore.QPoint)mapFromParent
(-> PySide6.QtCore.QPoint)mapTo
(-> PySide6.QtCore.QPoint)mapToGlobal
(-> PySide6.QtCore.QPoint)mapToParent
(-> PySide6.QtCore.QPoint)mask
(self)maximumHeight
(self)maximumSize
(self)maximumWidth
(self)menuBar
(self)menuWidget
(self)metaObject
(self)metric
(self, arg__1)minimumHeight
(self)minimumSize
(self)minimumSizeHint
(self)minimumWidth
(self)mouseDoubleClickEvent
(self, event)mouseGrabber
()mouseMoveEvent
(self, event)mousePressEvent
(self, event)mouseReleaseEvent
(self, event)move
(-> None)moveEvent
(self, event)moveToThread
(self, thread)nativeEvent
(self, eventType, message)nativeParentWidget
(self)nextInFocusChain
(self)normalGeometry
(self)objectName
(self)overrideWindowFlags
(self, type)overrideWindowState
(self, state)paintEngine
(self)paintEvent
(self, event)paintingActive
(self)palette
(self)parent
(self)parentWidget
(self)physicalDpiX
(self)physicalDpiY
(self)pos
(self)previousInFocusChain
(self)property
(self, name)raise_
(self)receivers
(self, signal)rect
(self)redirected
(self, offset)releaseKeyboard
(self)releaseMouse
(self)releaseShortcut
(self, id)removeAction
(self, action)removeDockWidget
(self, dockwidget)removeEventFilter
(self, obj)removeToolBar
(self, toolbar)removeToolBarBreak
(self, before)render
(, renderFlags, sourceRegion, ...)repaint
(-> None -> None -> None)resize
(-> None)resizeDocks
(self, docks, sizes, orientation)resizeEvent
(self, event)restoreDockWidget
(self, dockwidget)restoreGeometry
(self, geometry)restoreState
(self, state[, version])saveGeometry
(self)saveState
(self[, version])screen
(self)scroll
(-> None)sender
(self)senderSignalIndex
(self)setAcceptDrops
(self, on)setAccessibleDescription
(self, description)setAccessibleName
(self, name)setAnimated
(self, enabled)setAttribute
(self, arg__1[, on])setAutoFillBackground
(self, enabled)setBackgroundRole
(self, arg__1)setBaseSize
(-> None)setCentralWidget
(self, widget)setContentsMargins
(-> None)setContextMenuPolicy
(self, policy)setCorner
(self, corner, area)setCursor
(self, arg__1)setDisabled
(self, arg__1)setDockNestingEnabled
(self, enabled)setDockOptions
(self, options)setDocumentMode
(self, enabled)setEnabled
(self, arg__1)setFixedHeight
(self, h)setFixedSize
(-> None)setFixedWidth
(self, w)setFocus
(-> None)setFocusPolicy
(self, policy)setFocusProxy
(self, arg__1)setFont
(self, arg__1)setForegroundRole
(self, arg__1)setGeometry
(-> None)setGraphicsEffect
(self, effect)setHidden
(self, hidden)setIconSize
(self, iconSize)setInputMethodHints
(self, hints)setLayout
(self, arg__1)setLayoutDirection
(self, direction)setLocale
(self, locale)setMask
(-> None)setMaximumHeight
(self, maxh)setMaximumSize
(-> None)setMaximumWidth
(self, maxw)setMenuBar
(self, menubar)setMenuWidget
(self, menubar)setMinimumHeight
(self, minh)setMinimumSize
(-> None)setMinimumWidth
(self, minw)setMouseTracking
(self, enable)setObjectName
(self, name)setPalette
(self, arg__1)setParent
(-> None)setProperty
(self, name, value)setScreen
(self, arg__1)setShortcutAutoRepeat
(self, id[, enable])setShortcutEnabled
(self, id[, enable])setSizeIncrement
(-> None)setSizePolicy
(-> None)setStatusBar
(self, statusbar)setStatusTip
(self, arg__1)setStyle
(self, arg__1)setStyleSheet
(self, styleSheet)setTabOrder
(arg__1, arg__2)setTabPosition
(self, areas, tabPosition)setTabShape
(self, tabShape)setTabletTracking
(self, enable)setToolButtonStyle
(self, toolButtonStyle)setToolTip
(self, arg__1)setToolTipDuration
(self, msec)setUnifiedTitleAndToolBarOnMac
(self, set)setUpdatesEnabled
(self, enable)setVisible
(self, visible)setWhatsThis
(self, arg__1)setWindowFilePath
(self, filePath)setWindowFlag
(self, arg__1[, on])setWindowFlags
(self, type)setWindowIcon
(self, icon)setWindowIconText
(self, arg__1)setWindowModality
(self, windowModality)setWindowModified
(self, arg__1)setWindowOpacity
(self, level)setWindowRole
(self, arg__1)setWindowState
(self, state)setWindowTitle
(self, arg__1)sharedPainter
(self)show
(self)showEvent
(self, event)showFullScreen
(self)showMaximized
(self)showMinimized
(self)showNormal
(self)signalsBlocked
(self)size
(self)sizeHint
(self)sizeIncrement
(self)sizePolicy
(self)splitDockWidget
(self, after, dockwidget, ...)stackUnder
(self, arg__1)startTimer
(self, interval[, timerType])statusBar
(self)statusTip
(self)style
(self)styleSheet
(self)tabPosition
(self, area)tabShape
(self)tabifiedDockWidgets
(self, dockwidget)tabifyDockWidget
(self, first, second)tabletEvent
(self, event)takeCentralWidget
(self)testAttribute
(self, arg__1)thread
(self)timerEvent
(self, event)toolBarArea
(self, toolbar)toolBarBreak
(self, toolbar)toolButtonStyle
(self)toolTip
(self)toolTipDuration
(self)topLevelWidget
(self)tr
(self, sourceText, disambiguation[, n])underMouse
(self)ungrabGesture
(self, type)unifiedTitleAndToolBarOnMac
(self)unsetCursor
(self)unsetLayoutDirection
(self)unsetLocale
(self)update
(-> None -> None -> None)updateGeometry
(self)updateMicroFocus
(self[, query])updatesEnabled
(self)visibleRegion
(self)whatsThis
(self)wheelEvent
(self, event)width
(self)widthMM
(self)winId
(self)window
(self)windowFilePath
(self)windowFlags
(self)windowHandle
(self)windowIcon
(self)windowIconText
(self)windowModality
(self)windowOpacity
(self)windowRole
(self)windowState
(self)windowTitle
(self)windowType
(self)x
(self)y
(self)add_btn
customContextMenuRequested
destroyed
enlarge
finish
iconSizeChanged
initUi
next_connect
objectNameChanged
on_click
plot_save
plot_ui
previous_connect
reduce
tabifiedDockWidgetActivated
toolButtonStyleChanged
windowIconChanged
windowIconTextChanged
windowTitleChanged
- staticMetaObject = PySide6.QtCore.QMetaObject("MatplotlibWidget" inherits "QMainWindow": )#
- class seispy.pickrf.pickui.MyMplCanvas(parent=None, rfpath='', only_r=False, width=21, height=11, dpi=100, xlim=[-2, 30], order='baz')[source]#
Bases:
FigureCanvasQTAgg
- Attributes:
- button_pick_id
- callbacks
device_pixel_ratio
The ratio of physical to logical pixels used for the canvas on screen.
- fixed_dpi
- painters
- scroll_pick_id
Methods
PaintDeviceMetric
(value)An enumeration.
RenderFlag
(value)An enumeration.
acceptDrops
(self)accessibleDescription
(self)accessibleName
(self)actionEvent
(self, event)actions
(self)activateWindow
(self)addAction
(...)addActions
(self, actions)adjustSize
(self)autoFillBackground
(self)backgroundRole
(self)backingStore
(self)baseSize
(self)blit
([bbox])Blit the canvas in bbox (default entire canvas).
blockSignals
(self, b)buffer_rgba
()Get the image as a memoryview to the renderer's buffer.
button_press_event
(x, y, button[, dblclick, ...])[Deprecated] Callback processing for mouse button press events.
button_release_event
(x, y, button[, guiEvent])[Deprecated] Callback processing for mouse button release events.
changeEvent
(self, event)childAt
(-> PySide6.QtWidgets.QWidget)childEvent
(self, event)children
(self)childrenRect
(self)childrenRegion
(self)clearFocus
(self)clearMask
(self)close
(self)closeEvent
(self, event)close_event
([guiEvent])[Deprecated] Pass a CloseEvent to all functions connected to
close_event
.colorCount
(self)connect
(...)connectNotify
(self, signal)contentsMargins
(self)contentsRect
(self)contextMenuEvent
(self, event)contextMenuPolicy
(self)create
(self[, arg__1, initializeWindow, ...])createWinId
(self)createWindowContainer
(window[, parent, flags])cursor
(self)customEvent
(self, event)deleteLater
(self)depth
(self)destroy
(self[, destroyWindow, destroySubWindows])devType
(self)devicePixelRatio
(self)devicePixelRatioF
(self)devicePixelRatioFScale
()disconnect
(...)disconnectNotify
(self, signal)dragEnterEvent
(self, event)dragLeaveEvent
(self, event)dragMoveEvent
(self, event)draw
()Render the figure, and queue a request for a Qt draw.
draw_event
(renderer)[Deprecated] Pass a DrawEvent to all functions connected to
draw_event
.draw_idle
()Queue redraw of the Agg buffer and request Qt paintEvent.
dropEvent
(self, event)dumpObjectInfo
(self)dumpObjectTree
(self)dynamicPropertyNames
(self)effectiveWinId
(self)emit
(self, arg__1, *args)ensurePolished
(self)enterEvent
(self, event)enter_notify_event
([guiEvent])[Deprecated] Callback processing for the mouse cursor entering the canvas.
event
(self, event)eventFilter
(self, watched, event)find
(arg__1)findChild
(self, type[, name, options])findChildren
() -> Iterable ))flush_events
()Flush the GUI events for the figure.
focusInEvent
(self, event)focusNextChild
(self)focusNextPrevChild
(self, next)focusOutEvent
(self, event)focusPolicy
(self)focusPreviousChild
(self)focusProxy
(self)focusWidget
(self)font
(self)fontInfo
(self)fontMetrics
(self)foregroundRole
(self)frameGeometry
(self)frameSize
(self)geometry
(self)get_default_filename
()Return a string, which includes extension, suitable for use as a default filename.
get_default_filetype
()Return the default savefig file format as specified in :rc:`savefig.format`.
get_supported_filetypes
()Return dict of savefig file formats supported by this backend.
get_supported_filetypes_grouped
()Return a dict of savefig file formats supported by this backend, where the keys are a file type name, such as 'Joint Photographic Experts Group', and the values are a list of filename extensions used for that filetype, such as ['jpg', 'jpeg'].
get_width_height
(*[, physical])Return the figure width and height in integral points or pixels.
grab
(self[, rectangle])grabGesture
(self, type[, flags])grabKeyboard
(self)grabMouse
(-> None)grabShortcut
(self, key[, context])grab_mouse
(ax)Set the child ~.axes.Axes which is grabbing the mouse events.
graphicsEffect
(self)graphicsProxyWidget
(self)hasFocus
(self)hasHeightForWidth
(self)hasMouseTracking
(self)hasTabletTracking
(self)height
(self)heightForWidth
(self, arg__1)heightMM
(self)hide
(self)hideEvent
(self, event)inaxes
(xy)Return the topmost visible ~.axes.Axes containing the point xy.
inherits
(self, classname)initPainter
(self, painter)inputMethodEvent
(self, event)inputMethodHints
(self)inputMethodQuery
(self, arg__1)insertAction
(self, before, action)insertActions
(self, before, actions)installEventFilter
(self, filterObj)internalWinId
(self)isActiveWindow
(self)isAncestorOf
(self, child)isEnabled
(self)isEnabledTo
(self, arg__1)isFullScreen
(self)isHidden
(self)isLeftToRight
(self)isMaximized
(self)isMinimized
(self)isModal
(self)isQuickItemType
(self)isRightToLeft
(self)isSignalConnected
(self, signal)isTopLevel
(self)isVisible
(self)isVisibleTo
(self, arg__1)isWidgetType
(self)isWindow
(self)isWindowModified
(self)isWindowType
(self)is_saving
()Return whether the renderer is in the process of saving to a file, rather than rendering for an on-screen buffer.
keyPressEvent
(self, event)keyReleaseEvent
(self, event)key_press_event
(key[, guiEvent])[Deprecated] Pass a KeyEvent to all functions connected to
key_press_event
.key_release_event
(key[, guiEvent])[Deprecated] Pass a KeyEvent to all functions connected to
key_release_event
.keyboardGrabber
()killTimer
(self, id)layout
(self)layoutDirection
(self)leaveEvent
(self, event)leave_notify_event
([guiEvent])[Deprecated] Callback processing for the mouse cursor leaving the canvas.
locale
(self)logicalDpiX
(self)logicalDpiY
(self)lower
(self)manager_class
alias of
FigureManagerQT
mapFrom
(-> PySide6.QtCore.QPoint)mapFromGlobal
(-> PySide6.QtCore.QPoint)mapFromParent
(-> PySide6.QtCore.QPoint)mapTo
(-> PySide6.QtCore.QPoint)mapToGlobal
(-> PySide6.QtCore.QPoint)mapToParent
(-> PySide6.QtCore.QPoint)mask
(self)maximumHeight
(self)maximumSize
(self)maximumWidth
(self)metaObject
(self)metric
(self, arg__1)minimumHeight
(self)minimumSize
(self)minimumSizeHint
(self)minimumWidth
(self)motion_notify_event
(x, y[, guiEvent])[Deprecated] Callback processing for mouse movement events.
mouseDoubleClickEvent
(self, event)mouseEventCoords
([pos])Calculate mouse coordinates in physical pixels.
mouseGrabber
()mouseMoveEvent
(self, event)mousePressEvent
(self, event)mouseReleaseEvent
(self, event)move
(-> None)moveEvent
(self, event)moveToThread
(self, thread)mpl_connect
(s, func)Bind function func to event s.
mpl_disconnect
(cid)Disconnect the callback with id cid.
nativeEvent
(self, eventType, message)nativeParentWidget
(self)new_manager
(figure, num)Create a new figure manager for figure, using this canvas class.
new_timer
([interval, callbacks])Create a new backend-specific subclass of .Timer.
nextInFocusChain
(self)normalGeometry
(self)objectName
(self)overrideWindowFlags
(self, type)overrideWindowState
(self, state)paintEngine
(self)paintEvent
(event)Copy the image from the Agg canvas to the qt.drawable.
paintingActive
(self)palette
(self)parent
(self)parentWidget
(self)physicalDpiX
(self)physicalDpiY
(self)pick
(mouseevent)[Deprecated]
pick_event
(mouseevent, artist, **kwargs)[Deprecated] Callback processing for pick events.
pos
(self)previousInFocusChain
(self)print_figure
(*args, **kwargs)Render the figure to hardcopy.
print_jpeg
(filename_or_obj, *[, pil_kwargs])Write the figure to a JPEG file.
print_jpg
(filename_or_obj, *[, pil_kwargs])Write the figure to a JPEG file.
print_png
(filename_or_obj, *[, metadata, ...])Write the figure to a PNG file.
print_tif
(filename_or_obj, *[, pil_kwargs])Write the figure to a TIFF file.
print_tiff
(filename_or_obj, *[, pil_kwargs])Write the figure to a TIFF file.
print_webp
(filename_or_obj, *[, pil_kwargs])Write the figure to a WebP file.
property
(self, name)raise_
(self)receivers
(self, signal)rect
(self)redirected
(self, offset)releaseKeyboard
(self)releaseMouse
(self)releaseShortcut
(self, id)release_mouse
(ax)Release the mouse grab held by the ~.axes.Axes ax.
removeAction
(self, action)removeEventFilter
(self, obj)render
(, renderFlags, sourceRegion, ...)repaint
(-> None -> None -> None)resize
(w, h)UNUSED: Set the canvas size in pixels.
resizeEvent
(self, event)resize_event
()[Deprecated] Pass a ResizeEvent to all functions connected to
resize_event
.restoreGeometry
(self, geometry)saveGeometry
(self)screen
(self)scroll
(-> None)scroll_event
(x, y, step[, guiEvent])[Deprecated] Callback processing for scroll events.
sender
(self)senderSignalIndex
(self)setAcceptDrops
(self, on)setAccessibleDescription
(self, description)setAccessibleName
(self, name)setAttribute
(self, arg__1[, on])setAutoFillBackground
(self, enabled)setBackgroundRole
(self, arg__1)setBaseSize
(-> None)setContentsMargins
(-> None)setContextMenuPolicy
(self, policy)setCursor
(self, arg__1)setDisabled
(self, arg__1)setEnabled
(self, arg__1)setFixedHeight
(self, h)setFixedSize
(-> None)setFixedWidth
(self, w)setFocus
(-> None)setFocusPolicy
(self, policy)setFocusProxy
(self, arg__1)setFont
(self, arg__1)setForegroundRole
(self, arg__1)setGeometry
(-> None)setGraphicsEffect
(self, effect)setHidden
(self, hidden)setInputMethodHints
(self, hints)setLayout
(self, arg__1)setLayoutDirection
(self, direction)setLocale
(self, locale)setMask
(-> None)setMaximumHeight
(self, maxh)setMaximumSize
(-> None)setMaximumWidth
(self, maxw)setMinimumHeight
(self, minh)setMinimumSize
(-> None)setMinimumWidth
(self, minw)setMouseTracking
(self, enable)setObjectName
(self, name)setPalette
(self, arg__1)setParent
(-> None)setProperty
(self, name, value)setScreen
(self, arg__1)setShortcutAutoRepeat
(self, id[, enable])setShortcutEnabled
(self, id[, enable])setSizeIncrement
(-> None)setSizePolicy
(-> None)setStatusTip
(self, arg__1)setStyle
(self, arg__1)setStyleSheet
(self, styleSheet)setTabOrder
(arg__1, arg__2)setTabletTracking
(self, enable)setToolTip
(self, arg__1)setToolTipDuration
(self, msec)setUpdatesEnabled
(self, enable)setVisible
(self, visible)setWhatsThis
(self, arg__1)setWindowFilePath
(self, filePath)setWindowFlag
(self, arg__1[, on])setWindowFlags
(self, type)setWindowIcon
(self, icon)setWindowIconText
(self, arg__1)setWindowModality
(self, windowModality)setWindowModified
(self, arg__1)setWindowOpacity
(self, level)setWindowRole
(self, arg__1)setWindowState
(self, state)setWindowTitle
(self, arg__1)set_cursor
(cursor)Set the current cursor.
sharedPainter
(self)show
(self)showEvent
(self, event)showFullScreen
(self)showMaximized
(self)showMinimized
(self)showNormal
(self)signalsBlocked
(self)size
(self)sizeHint
(self)sizeIncrement
(self)sizePolicy
(self)stackUnder
(self, arg__1)startTimer
(self, interval[, timerType])start_event_loop
([timeout])Start a blocking event loop.
statusTip
(self)stop_event_loop
([event])Stop the current blocking event loop.
style
(self)styleSheet
(self)switch_backends
(FigureCanvasClass)Instantiate an instance of FigureCanvasClass
tabletEvent
(self, event)testAttribute
(self, arg__1)thread
(self)timerEvent
(self, event)toolTip
(self)toolTipDuration
(self)topLevelWidget
(self)tostring_argb
()Get the image as ARGB bytes.
tostring_rgb
()Get the image as RGB bytes.
tr
(self, sourceText, disambiguation[, n])underMouse
(self)ungrabGesture
(self, type)unsetCursor
(self)unsetLayoutDirection
(self)unsetLocale
(self)update
(-> None -> None -> None)updateGeometry
(self)updateMicroFocus
(self[, query])updatesEnabled
(self)visibleRegion
(self)whatsThis
(self)wheelEvent
(self, event)width
(self)widthMM
(self)winId
(self)window
(self)windowFilePath
(self)windowFlags
(self)windowHandle
(self)windowIcon
(self)windowIconText
(self)windowModality
(self)windowOpacity
(self)windowRole
(self)windowState
(self)windowTitle
(self)windowType
(self)x
(self)y
(self)copy_from_bbox
customContextMenuRequested
destroyed
drawRectangle
get_renderer
minumumSizeHint
objectNameChanged
print_raw
print_rgba
print_to_buffer
restore_region
windowIconChanged
windowIconTextChanged
windowTitleChanged
- staticMetaObject = PySide6.QtCore.QMetaObject("MyMplCanvas" inherits "FigureCanvasQTAgg": )#