py_eddy_tracker.gui.PlatCarreAxes¶
-
class
py_eddy_tracker.gui.PlatCarreAxes(*args, **kwargs)[source]¶ Bases:
matplotlib.axes._axes.AxesClass to replace missing pylook class
Build an axes in a figure.
- fig~matplotlib.figure.Figure
The axes is build in the .Figure fig.
- rect[left, bottom, width, height]
The axes is build 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_aspectNone, or a number, optional
Sets the aspect of the axes box. 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 alpha: float or None anchor: 2-tuple of floats or {‘C’, ‘SW’, ‘S’, ‘SE’, …} animated: bool aspect: {‘auto’} or num autoscale_on: bool autoscalex_on: bool autoscaley_on: bool axes_locator: Callable[[Axes, Renderer], Bbox] axisbelow: bool or ‘line’ box_aspect: None, or a number clip_box: .Bbox clip_on: bool clip_path: Patch or (Path, Transform) or None contains: unknown facecolor or fc: color figure: .Figure frame_on: bool gid: str in_layout: bool label: object navigate: bool navigate_mode: unknown path_effects: .AbstractPathEffect picker: None or bool or callable position: [left, bottom, width, height] or ~matplotlib.transforms.Bbox prop_cycle: unknown rasterization_zorder: float or None rasterized: bool or None 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: {“linear”, “log”, “symlog”, “logit”, …} xticklabels: unknown xticks: unknown ybound: unknown ylabel: str ylim: (bottom: float, top: float) ymargin: float greater than -0.5 yscale: {“linear”, “log”, “symlog”, “logit”, …} 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, and 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’ collections; return the collection.
add_containerAdd a ~.Container to the axes’ containers; return the container.
add_imageAdd an ~.AxesImage to the axes’ images; return the image.
add_lineAdd a .Line2D to the axes’ lines; return the line.
add_patchAdd a ~.Patch to the axes’ patches; return the patch.
add_tableAdd a ~.Table to the axes’ tables; 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 axis.
axhspanAdd a horizontal span (rectangle) across the axis.
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.
barbsPlot a 2D field of barbs.
barhMake a horizontal bar plot.
boxplotMake a box and whisker plot.
broken_barhPlot a horizontal sequence of rectangles.
bxpDrawing function for box and whisker plots.
can_panReturn True if this axes supports any pan/zoom button functionality.
can_zoomReturn True if this axes supports the zoom box button functionality.
claClear the current 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 contours.
contourfPlot 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.
end_panCalled 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_aspectget_autoscale_onGet whether autoscaling is applied for both axes on plot commands
get_autoscalex_onGet whether autoscaling for the x-axis is applied on plot commands
get_autoscaley_onGet whether autoscaling for the y-axis is applied on plot commands
get_axes_locatorReturn the axes_locator.
get_axisbelowGet whether axis ticks and gridlines are above or below most artists.
get_box_aspectGet the axes box aspect.
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_contains[Deprecated] Return the custom contains function of the artist if set, or None.
get_cursor_dataReturn the cursor data for a given event.
get_data_ratioReturn the aspect ratio of the scaled data.
get_data_ratio_log[Deprecated] Return the aspect ratio of the raw data in log scale.
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_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_positionGet a copy of the axes rectangle 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_cacheget_shared_x_axesReturn a reference to the shared axes Grouper object for x axes.
get_shared_y_axesReturn a reference to the shared axes Grouper object for y axes.
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_xaxisReturn the XAxis instance.
get_xaxis_text1_transformReturns
get_xaxis_text2_transformReturns
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_yaxisReturn the YAxis instance.
get_yaxis_text1_transformReturns
get_yaxis_text2_transformReturns
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 True if any artists have been added to axes.
have_unitsReturn True if units are set on any axis.
hexbinMake a 2D hexagonal binning plot of points x, y.
histPlot 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 True if the given mouseevent (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_datePlot data that contains 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.
setA property batch setter.
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 the artist’s animation state.
set_aspectSet the aspect of the axis scaling, i.e. the ratio of y-unit to x-unit.
set_autoscale_onSet whether autoscaling is applied on plot commands
set_autoscalex_onSet whether autoscaling for the x-axis is applied on plot commands
set_autoscaley_onSet whether autoscaling for the y-axis is applied on plot commands
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.
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_contains[Deprecated] Define a custom contains test for the artist.
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_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_zorderParameters
set_rasterizedForce rasterized (bitmap) drawing in vector backend output.
set_sketch_paramsSets 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 x-axis scale.
set_xticklabelsSet the xaxis’ labels with list of string labels.
set_xticksSet the xaxis’ tick locations.
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 y-axis scale.
set_yticklabelsSet the yaxis’ labels with list of string labels.
set_yticksSet the yaxis’ tick locations.
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.
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 a 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_datalim_bounds[Deprecated] Extend the ~.Axes.datalim Bbox to include the given ~matplotlib.transforms.Bbox.
update_fromCopy properties from other to self.
violinDrawing function for violin plots.
violinplotMake a violin plot.
vlinesPlot vertical lines.
xaxis_dateSets 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_dateSets 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
axesThe ~.axes.Axes instance the artist resides in, or None.
mouseoverIf this property is set to True, the artist will be queried for custom context information when the mouse cursor moves over it.
namestaleWhether 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.use_sticky_edgesWhen autoscaling, whether to obey all Artist.sticky_edges.
viewLimzorder