py_eddy_tracker.gui.GUIAxes¶
- class py_eddy_tracker.gui.GUIAxes(*args, **kwargs)[source]¶
Bases:
PlatCarreAxesAxes that uses full space available
Build an Axes in a figure.
- fig~matplotlib.figure.Figure
The Axes is built in the .Figure fig.
- recttuple (left, bottom, width, height).
The Axes is built in the rectangle rect. rect is in .Figure coordinates.
- sharex, sharey~.axes.Axes, optional
The x or y ~.matplotlib.axis is shared with the x or y axis in the input ~.axes.Axes.
- frameonbool, default: True
Whether the Axes frame is visible.
- box_aspectfloat, optional
Set a fixed aspect for the Axes box, i.e. the ratio of height to width. See ~.axes.Axes.set_box_aspect for details.
- **kwargs
Other optional keyword arguments:
Properties: adjustable: {‘box’, ‘datalim’} 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 anchor: (float, float) or {‘C’, ‘SW’, ‘S’, ‘SE’, ‘E’, ‘NE’, …} animated: bool aspect: {‘auto’, ‘equal’} or float autoscale_on: bool autoscalex_on: unknown autoscaley_on: unknown axes_locator: Callable[[Axes, Renderer], Bbox] axisbelow: bool or ‘line’ box_aspect: float or None clip_box: .Bbox clip_on: bool clip_path: Patch or (Path, Transform) or None facecolor or fc: color figure: .Figure frame_on: bool gid: str in_layout: bool label: object mouseover: bool navigate: bool navigate_mode: unknown path_effects: .AbstractPathEffect picker: None or bool or float or callable position: [left, bottom, width, height] or ~matplotlib.transforms.Bbox prop_cycle: unknown rasterization_zorder: float or None rasterized: bool sketch_params: (scale: float, length: float, randomness: float) snap: bool or None title: str transform: .Transform url: str visible: bool xbound: unknown xlabel: str xlim: (bottom: float, top: float) xmargin: float greater than -0.5 xscale: unknown xticklabels: unknown xticks: unknown ybound: unknown ylabel: str ylim: (bottom: float, top: float) ymargin: float greater than -0.5 yscale: unknown yticklabels: unknown yticks: unknown zorder: float
- ~.axes.Axes
The new ~.axes.Axes object.
Methods
acorrPlot the autocorrelation of x.
add_artistAdd an .Artist to the Axes; return the artist.
add_callbackAdd a callback function that will be called whenever one of the .Artist's properties changes.
add_child_axesAdd an .AxesBase to the Axes' children; return the child Axes.
add_collectionAdd a .Collection to the Axes; return the collection.
add_containerAdd a .Container to the Axes' containers; return the container.
add_imageAdd an .AxesImage to the Axes; return the image.
add_lineAdd a .Line2D to the Axes; return the line.
add_patchAdd a .Patch to the Axes; return the patch.
add_tableAdd a .Table to the Axes; return the table.
angle_spectrumPlot the angle spectrum.
annotateAnnotate the point xy with text text.
apply_aspectAdjust the Axes for a specified data aspect ratio.
arrowAdd an arrow to the Axes.
autoscaleAutoscale the axis view to the data (toggle).
autoscale_viewAutoscale the view limits using the data limits.
axhlineAdd a horizontal line across the Axes.
axhspanAdd a horizontal span (rectangle) across the Axes.
axisConvenience method to get or set some axis properties.
axlineAdd an infinitely long straight line.
axvlineAdd a vertical line across the Axes.
axvspanAdd a vertical span (rectangle) across the Axes.
barMake a bar plot.
bar_labelLabel a bar plot.
barbsPlot a 2D field of barbs.
barhMake a horizontal bar plot.
boxplotDraw a box and whisker plot.
broken_barhPlot a horizontal sequence of rectangles.
bxpDrawing function for box and whisker plots.
can_panReturn whether this Axes supports any pan/zoom button functionality.
can_zoomReturn whether this Axes supports the zoom box button functionality.
claClear the Axes.
clabelLabel a contour plot.
clearClear the Axes.
coherePlot the coherence between x and y.
containsTest whether the artist contains the mouse event.
contains_pointReturn whether point (pair of pixel coordinates) is inside the Axes patch.
contourPlot contour lines.
contourfPlot filled contours.
convert_xunitsConvert x using the unit type of the xaxis.
convert_yunitsConvert y using the unit type of the yaxis.
csdPlot the cross-spectral density.
drag_panCalled when the mouse moves during a pan operation.
drawDraw the Artist (and its children) using the given renderer.
draw_artistEfficiently redraw a single artist.
Called when a pan operation completes (when the mouse button is up.)
errorbarPlot y versus x as lines and/or markers with attached errorbars.
eventplotPlot identical parallel lines at the given positions.
fillPlot filled polygons.
fill_betweenFill the area between two horizontal curves.
fill_betweenxFill the area between two vertical curves.
findobjFind artist objects.
format_coordReturn a format string formatting the x, y coordinates.
format_cursor_dataReturn a string representation of data.
format_xdataReturn x formatted as an x-value.
format_ydataReturn y formatted as an y-value.
get_adjustableReturn whether the Axes will adjust its physical dimension ('box') or its data limits ('datalim') to achieve the desired aspect ratio.
get_agg_filterReturn filter function to be used for agg filter.
get_alphaReturn the alpha value used for blending - not supported on all backends.
get_anchorGet the anchor location.
get_animatedReturn whether the artist is animated.
get_aspectReturn the aspect ratio of the axes scaling.
get_autoscale_onReturn True if each axis is autoscaled, False otherwise.
get_autoscalex_onReturn whether the xaxis is autoscaled.
get_autoscaley_onReturn whether the yaxis is autoscaled.
get_axes_locatorReturn the axes_locator.
get_axisbelowGet whether axis ticks and gridlines are above or below most artists.
get_box_aspectReturn the Axes box aspect, i.e. the ratio of height to width.
get_childrenReturn a list of the child .Artists of this .Artist.
get_clip_boxReturn the clipbox.
get_clip_onReturn whether the artist uses clipping.
get_clip_pathReturn the clip path.
get_cursor_dataReturn the cursor data for a given event.
get_data_ratioReturn the aspect ratio of the scaled data.
get_default_bbox_extra_artistsReturn a default list of artists that are used for the bounding box calculation.
get_facecolorGet the facecolor of the Axes.
get_fcAlias for get_facecolor.
get_figureReturn the .Figure instance the artist belongs to.
get_frame_onGet whether the Axes rectangle patch is drawn.
get_gidReturn the group id.
get_imagesReturn a list of .AxesImages contained by the Axes.
get_in_layoutReturn boolean flag,
Trueif artist is included in layout calculations.get_labelReturn the label used for this artist in the legend.
get_legendReturn the .Legend instance, or None if no legend is defined.
get_legend_handles_labelsReturn handles and labels for legend
get_linesReturn a list of lines contained by the Axes.
get_mouseoverReturn whether this artist is queried for custom context information when the mouse cursor moves over it.
get_navigateGet whether the Axes responds to navigation commands.
get_navigate_modeGet the navigation toolbar button status: 'PAN', 'ZOOM', or None.
get_path_effectsget_pickerReturn the picking behavior of the artist.
get_positionReturn the position of the Axes within the figure as a .Bbox.
get_rasterization_zorderReturn the zorder value below which artists will be rasterized.
get_rasterizedReturn whether the artist is to be rasterized.
get_renderer_cache[Deprecated]
get_shared_x_axesReturn an immutable view on the shared x-axes Grouper.
get_shared_y_axesReturn an immutable view on the shared y-axes Grouper.
get_sketch_paramsReturn the sketch parameters for the artist.
get_snapReturn the snap setting.
get_tightbboxReturn the tight bounding box of the Axes, including axis and their decorators (xlabel, title, etc).
get_titleGet an Axes title.
get_transformReturn the .Transform instance used by this artist.
get_transformed_clip_path_and_affineReturn the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
get_urlReturn the url.
get_visibleReturn the visibility.
get_window_extentReturn the Axes bounding box in display space; args and kwargs are empty.
get_xaxis[Discouraged] Return the XAxis instance.
get_xaxis_text1_transformReturns transform Transform The transform used for drawing x-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in data coordinates and the y-direction is in axis coordinates valign {'center', 'top', 'bottom', 'baseline', 'center_baseline'} The text vertical alignment. halign {'center', 'left', 'right'} The text horizontal alignment.
get_xaxis_text2_transformReturns transform Transform The transform used for drawing secondary x-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in data coordinates and the y-direction is in axis coordinates valign {'center', 'top', 'bottom', 'baseline', 'center_baseline'} The text vertical alignment. halign {'center', 'left', 'right'} The text horizontal alignment.
get_xaxis_transformGet the transformation used for drawing x-axis labels, ticks and gridlines.
get_xboundReturn the lower and upper x-axis bounds, in increasing order.
get_xgridlinesReturn the xaxis' grid lines as a list of .Line2Ds.
get_xlabelGet the xlabel text string.
get_xlimReturn the x-axis view limits.
get_xmajorticklabelsReturn the xaxis' major tick labels, as a list of ~.text.Text.
get_xminorticklabelsReturn the xaxis' minor tick labels, as a list of ~.text.Text.
get_xscaleReturn the xaxis' scale (as a str).
get_xticklabelsGet the xaxis' tick labels.
get_xticklinesReturn the xaxis' tick lines as a list of .Line2Ds.
get_xticksReturn the xaxis' tick locations in data coordinates.
get_yaxis[Discouraged] Return the YAxis instance.
get_yaxis_text1_transformReturns transform Transform The transform used for drawing y-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in axis coordinates and the y-direction is in data coordinates valign {'center', 'top', 'bottom', 'baseline', 'center_baseline'} The text vertical alignment. halign {'center', 'left', 'right'} The text horizontal alignment.
get_yaxis_text2_transformReturns transform Transform The transform used for drawing secondart y-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in axis coordinates and the y-direction is in data coordinates valign {'center', 'top', 'bottom', 'baseline', 'center_baseline'} The text vertical alignment. halign {'center', 'left', 'right'} The text horizontal alignment.
get_yaxis_transformGet the transformation used for drawing y-axis labels, ticks and gridlines.
get_yboundReturn the lower and upper y-axis bounds, in increasing order.
get_ygridlinesReturn the yaxis' grid lines as a list of .Line2Ds.
get_ylabelGet the ylabel text string.
get_ylimReturn the y-axis view limits.
get_ymajorticklabelsReturn the yaxis' major tick labels, as a list of ~.text.Text.
get_yminorticklabelsReturn the yaxis' minor tick labels, as a list of ~.text.Text.
get_yscaleReturn the yaxis' scale (as a str).
get_yticklabelsGet the yaxis' tick labels.
get_yticklinesReturn the yaxis' tick lines as a list of .Line2Ds.
get_yticksReturn the yaxis' tick locations in data coordinates.
get_zorderReturn the artist's zorder.
gridConfigure the grid lines.
has_dataReturn whether any artists have been added to the Axes.
have_unitsReturn whether units are set on any axis.
hexbinMake a 2D hexagonal binning plot of points x, y.
histCompute and plot a histogram.
hist2dMake a 2D histogram plot.
hlinesPlot horizontal lines at each y from xmin to xmax.
imshowDisplay data as an image, i.e., on a 2D regular raster.
in_axesReturn whether the given event (in display coords) is in the Axes.
indicate_insetAdd an inset indicator to the Axes.
indicate_inset_zoomAdd an inset indicator rectangle to the Axes based on the axis limits for an inset_ax and draw connectors between inset_ax and the rectangle.
inset_axesAdd a child inset Axes to this existing Axes.
invert_xaxisInvert the x-axis.
invert_yaxisInvert the y-axis.
is_transform_setReturn whether the Artist has an explicitly set transform.
legendPlace a legend on the Axes.
locator_paramsControl behavior of major tick locators.
loglogMake a plot with log scaling on both the x and y axis.
magnitude_spectrumPlot the magnitude spectrum.
marginsSet or retrieve autoscaling margins.
matshowPlot the values of a 2D matrix or array as color-coded image.
minorticks_offRemove minor ticks from the Axes.
minorticks_onDisplay minor ticks on the Axes.
pchangedCall all of the registered callbacks.
pcolorCreate a pseudocolor plot with a non-regular rectangular grid.
pcolorfastCreate a pseudocolor plot with a non-regular rectangular grid.
pcolormeshCreate a pseudocolor plot with a non-regular rectangular grid.
phase_spectrumPlot the phase spectrum.
pickProcess a pick event.
pickableReturn whether the artist is pickable.
piePlot a pie chart.
plotPlot y versus x as lines and/or markers.
plot_date[Discouraged] Plot coercing the axis to treat floats as dates.
propertiesReturn a dictionary of all the properties of the artist.
psdPlot the power spectral density.
quiverPlot a 2D field of arrows.
quiverkeyAdd a key to a quiver plot.
redraw_in_frameEfficiently redraw Axes data, but not axis ticks, labels, etc.
relimRecompute the data limits based on current artists.
removeRemove the artist from the figure if possible.
remove_callbackRemove a callback based on its observer id.
reset_positionReset the active position to the original position.
scatterA scatter plot of y vs.
secondary_xaxisAdd a second x-axis to this Axes.
secondary_yaxisAdd a second y-axis to this Axes.
semilogxMake a plot with log scaling on the x axis.
semilogyMake a plot with log scaling on the y axis.
Set multiple properties at once.
set_adjustableSet how the Axes adjusts to achieve the required aspect ratio.
set_agg_filterSet the agg filter.
set_alphaSet the alpha value used for blending - not supported on all backends.
set_anchorDefine the anchor location.
set_animatedSet whether the artist is intended to be used in an animation.
set_aspectSet the aspect ratio of the axes scaling, i.e. y/x-scale.
set_autoscale_onSet whether autoscaling is applied to each axis on the next draw or call to .Axes.autoscale_view.
set_autoscalex_onSet whether the xaxis is autoscaled when drawing or by .Axes.autoscale_view.
set_autoscaley_onSet whether the yaxis is autoscaled when drawing or by .Axes.autoscale_view.
set_axes_locatorSet the Axes locator.
set_axis_offTurn the x- and y-axis off.
set_axis_onTurn the x- and y-axis on.
set_axisbelowSet whether axis ticks and gridlines are above or below most artists.
set_box_aspectSet the Axes box aspect, i.e. the ratio of height to width.
set_clip_boxSet the artist's clip .Bbox.
set_clip_onSet whether the artist uses clipping.
set_clip_pathSet the artist's clip path.
set_facecolorSet the facecolor of the Axes.
set_fcAlias for set_facecolor.
set_figureSet the .Figure instance the artist belongs to.
set_frame_onSet whether the Axes rectangle patch is drawn.
set_gidSet the (group) id for the artist.
set_in_layoutSet if artist is to be included in layout calculations, E.g.
set_labelSet a label that will be displayed in the legend.
set_mouseoverSet whether this artist is queried for custom context information when the mouse cursor moves over it.
set_navigateSet whether the Axes responds to navigation toolbar commands.
set_navigate_modeSet the navigation toolbar button status.
set_path_effectsSet the path effects.
set_pickerDefine the picking behavior of the artist.
set_positionSet the Axes position.
set_prop_cycleSet the property cycle of the Axes.
set_rasterization_zorderSet the zorder threshold for rasterization for vector graphics output.
set_rasterizedForce rasterized (bitmap) drawing for vector graphics output.
set_sketch_paramsSet the sketch parameters.
set_snapSet the snapping behavior.
set_titleSet a title for the Axes.
set_transformSet the artist transform.
set_urlSet the url for the artist.
set_visibleSet the artist's visibility.
set_xboundSet the lower and upper numerical bounds of the x-axis.
set_xlabelSet the label for the x-axis.
set_xlimSet the x-axis view limits.
set_xmarginSet padding of X data limits prior to autoscaling.
set_xscaleSet the xaxis' scale.
set_xticklabelsSet the xaxis' labels with list of string labels.
set_xticksSet the xaxis' tick locations and optionally labels.
set_yboundSet the lower and upper numerical bounds of the y-axis.
set_ylabelSet the label for the y-axis.
set_ylimSet the y-axis view limits.
set_ymarginSet padding of Y data limits prior to autoscaling.
set_yscaleSet the yaxis' scale.
set_yticklabelsSet the yaxis' labels with list of string labels.
set_yticksSet the yaxis' tick locations and optionally labels.
set_zorderSet the zorder for the artist.
sharexShare the x-axis with other.
shareyShare the y-axis with other.
specgramPlot a spectrogram.
spyPlot the sparsity pattern of a 2D array.
stackplotDraw a stacked area plot.
stairsA stepwise constant function as a line with bounding edges or a filled plot.
start_panCalled when a pan operation has started.
stemCreate a stem plot.
stepMake a step plot.
streamplotDraw streamlines of a vector flow.
tableAdd a table to an ~.axes.Axes.
textAdd text to the Axes.
tick_paramsChange the appearance of ticks, tick labels, and gridlines.
ticklabel_formatConfigure the .ScalarFormatter used by default for linear Axes.
tricontourDraw contour lines on an unstructured triangular grid.
tricontourfDraw contour regions on an unstructured triangular grid.
tripcolorCreate a pseudocolor plot of an unstructured triangular grid.
triplotDraw an unstructured triangular grid as lines and/or markers.
twinxCreate a twin Axes sharing the xaxis.
twinyCreate a twin Axes sharing the yaxis.
updateUpdate this artist's properties from the dict props.
update_datalimExtend the ~.Axes.dataLim Bbox to include the given points.
update_fromCopy properties from other to self.
violinDrawing function for violin plots.
violinplotMake a violin plot.
vlinesPlot vertical lines at each x from ymin to ymax.
xaxis_dateSet up axis ticks and labels to treat data along the xaxis as dates.
xaxis_invertedReturn whether the xaxis is oriented in the "inverse" direction.
xcorrPlot the cross correlation between x and y.
yaxis_dateSet up axis ticks and labels to treat data along the yaxis as dates.
yaxis_invertedReturn whether the yaxis is oriented in the "inverse" direction.
Attributes
artistsaxesThe ~.axes.Axes instance the artist resides in, or None.
collectionsimageslinesmouseoverReturn whether this artist is queried for custom context information when the mouse cursor moves over it.
patchesstaleWhether the artist is 'stale' and needs to be re-drawn for the output to match the internal state of the artist.
sticky_edgesxandysticky edge lists for autoscaling.tablestextsuse_sticky_edgesWhen autoscaling, whether to obey all Artist.sticky_edges.
viewLimzorder- end_pan(*args, **kwargs)[source]¶
Called when a pan operation completes (when the mouse button is up.)
This is intended to be overridden by new projection types.
- name = 'full_axes'¶
- set(*, adjustable=<UNSET>, agg_filter=<UNSET>, alpha=<UNSET>, anchor=<UNSET>, animated=<UNSET>, aspect=<UNSET>, autoscale_on=<UNSET>, autoscalex_on=<UNSET>, autoscaley_on=<UNSET>, axes_locator=<UNSET>, axisbelow=<UNSET>, box_aspect=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, facecolor=<UNSET>, frame_on=<UNSET>, gid=<UNSET>, in_layout=<UNSET>, label=<UNSET>, mouseover=<UNSET>, navigate=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, position=<UNSET>, prop_cycle=<UNSET>, rasterization_zorder=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, title=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, xbound=<UNSET>, xlabel=<UNSET>, xlim=<UNSET>, xmargin=<UNSET>, xscale=<UNSET>, xticklabels=<UNSET>, xticks=<UNSET>, ybound=<UNSET>, ylabel=<UNSET>, ylim=<UNSET>, ymargin=<UNSET>, yscale=<UNSET>, yticklabels=<UNSET>, yticks=<UNSET>, zorder=<UNSET>)¶
Set multiple properties at once.
Supported properties are
- Properties:
adjustable: {‘box’, ‘datalim’} 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 anchor: (float, float) or {‘C’, ‘SW’, ‘S’, ‘SE’, ‘E’, ‘NE’, …} animated: bool aspect: {‘auto’, ‘equal’} or float autoscale_on: bool autoscalex_on: unknown autoscaley_on: unknown axes_locator: Callable[[Axes, Renderer], Bbox] axisbelow: bool or ‘line’ box_aspect: float or None clip_box: .Bbox clip_on: bool clip_path: Patch or (Path, Transform) or None facecolor or fc: color figure: .Figure frame_on: bool gid: str in_layout: bool label: object mouseover: bool navigate: bool navigate_mode: unknown path_effects: .AbstractPathEffect picker: None or bool or float or callable position: [left, bottom, width, height] or ~matplotlib.transforms.Bbox prop_cycle: unknown rasterization_zorder: float or None rasterized: bool sketch_params: (scale: float, length: float, randomness: float) snap: bool or None title: str transform: .Transform url: str visible: bool xbound: unknown xlabel: str xlim: (bottom: float, top: float) xmargin: float greater than -0.5 xscale: unknown xticklabels: unknown xticks: unknown ybound: unknown ylabel: str ylim: (bottom: float, top: float) ymargin: float greater than -0.5 yscale: unknown yticklabels: unknown yticks: unknown zorder: float