API reference

matplotvite: minimal matplotlib-like API, rendered entirely in Rust.

The implementation lives in matplotvite._plotting; this module re-exports the public surface and attaches the compatibility submodules that import back from the package.

class matplotvite.Affine2D(*args, **kwargs)[source]

Bases: object

No-op affine transform accepted by annotation and locator helpers.

Parameters:
  • args (Any)

  • kwargs (Any)

class matplotvite.AnchoredDirectionArrows(transform, main_direction, cross_direction, loc='upper left', *, pad=0.0, borderpad=0.0, sep_x=0.06, sep_y=0.05, arrow_props=None, text_props=None, angle=0.0, aspect_ratio=1.0, length=0.15, color='k', fontproperties=None, **kwargs)[source]

Bases: object

Two perpendicular direction arrows pinned to an axes corner.

Parameters:
  • transform (Any)

  • main_direction (Any)

  • cross_direction (Any)

  • loc (Any)

  • pad (Any)

  • borderpad (Any)

  • sep_x (float)

  • sep_y (float)

  • arrow_props (Any)

  • text_props (Any)

  • angle (float)

  • aspect_ratio (float)

  • length (float)

  • color (Any)

  • fontproperties (Any)

  • kwargs (Any)

class matplotvite.AnchoredDrawingArea(width, height, xdescent, ydescent, *, loc='upper left', pad=0.0, borderpad=0.5, frameon=True, **kwargs)[source]

Bases: object

Fixed-size drawing area anchored to an axes corner.

Parameters:
  • width (Any)

  • height (Any)

  • xdescent (Any)

  • ydescent (Any)

  • loc (Any)

  • pad (Any)

  • borderpad (Any)

  • frameon (Any)

  • kwargs (Any)

class matplotvite.AnchoredOffsetbox(loc, child=None, pad=0.4, borderpad=0.5, frameon=True, bbox_to_anchor=None, bbox_transform=None, **kwargs)[source]

Bases: object

Offset box pinned to an axes corner.

Parameters:
  • loc (Any)

  • child (Any)

  • pad (Any)

  • borderpad (Any)

  • frameon (Any)

  • bbox_to_anchor (Any)

  • bbox_transform (Any)

  • kwargs (Any)

class matplotvite.AnchoredSizeBar(transform, size, label, loc, *, pad=0.1, borderpad=0.5, sep=5, frameon=True, size_vertical=0, color='black', **kwargs)[source]

Bases: object

A horizontal scale bar pinned to one side of an axes.

Parameters:
  • transform (Any)

  • size (Any)

  • label (Any)

  • loc (Any)

  • pad (Any)

  • borderpad (Any)

  • sep (Any)

  • frameon (Any)

  • size_vertical (Any)

  • color (Any)

  • kwargs (Any)

class matplotvite.AnchoredText(s, loc, *, pad=0.0, borderpad=0.5, prop=None, frameon=True, bbox_to_anchor=None, bbox_transform=None, **kwargs)[source]

Bases: object

Text pinned to one corner of an axes.

Parameters:
  • s (Any)

  • loc (Any)

  • pad (Any)

  • borderpad (Any)

  • prop (Any)

  • frameon (Any)

  • bbox_to_anchor (Any)

  • bbox_transform (Any)

  • kwargs (Any)

class matplotvite.AnnotationBbox(offsetbox, xy, xybox=None, xycoords='data', boxcoords=None, frameon=True, box_alignment=(0.5, 0.5), **kwargs)[source]

Bases: object

Place an offset box at a point on the axes.

Parameters:
  • offsetbox (Any)

  • xy (Any)

  • xybox (Any)

  • xycoords (Any)

  • boxcoords (Any)

  • frameon (Any)

  • box_alignment (Any)

  • kwargs (Any)

class matplotvite.Annulus(xy, r, width, angle=0.0, **kwargs)[source]

Bases: Patch

Parameters:
  • xy (Any)

  • r (Any)

  • width (Any)

  • angle (Any)

  • kwargs (Any)

class matplotvite.Arc(xy, width, height, angle=0.0, theta1=0.0, theta2=360.0, **kwargs)[source]

Bases: Patch

Parameters:
  • xy (Any)

  • width (Any)

  • height (Any)

  • angle (Any)

  • theta1 (Any)

  • theta2 (Any)

  • kwargs (Any)

class matplotvite.Arrow(x, y, dx, dy, width=1.0, **kwargs)[source]

Bases: Patch

A filled arrow from (x, y) to (x + dx, y + dy).

Parameters:
  • x (Any)

  • y (Any)

  • dx (Any)

  • dy (Any)

  • width (Any)

  • kwargs (Any)

class matplotvite.Artist(*args, **kwargs)[source]

Bases: object

Minimal artist base class used by custom gallery artists.

Parameters:
  • args (Any)

  • kwargs (Any)

matplotvite.AutoDateFormatter

alias of _AutoDateFormatter

matplotvite.AutoDateLocator

alias of _AutoDateLocator

class matplotvite.AuxTransformBox(aux_transform=None, **kwargs)[source]

Bases: object

Container for artists drawn in an auxiliary transform.

Parameters:
  • aux_transform (Any)

  • kwargs (Any)

class matplotvite.Axes(pos=0, *args, **kwargs)[source]

Bases: _PlotAxes, _StatsAxes, _FieldAxes, _DecorAxes

Matplotlib-style axes: plotting calls and axis configuration for one panel.

Parameters:
  • pos (Any)

  • args (Any)

  • kwargs (Any)

autoscale(enable=True, axis='both', tight=None)[source]

Autoscale the view to the data, honoring the stored margins.

enable=True re-enables autoscaling and recomputes the view from the data plus margins; False freezes the current view; None leaves the flags alone. tight=True zeroes the margins first, as Matplotlib does.

Parameters:
  • enable (Any)

  • axis (Any)

  • tight (Any)

Return type:

Any

autoscale_view(tight=None, scalex=True, scaley=True)[source]

Recompute the view from the data for every autoscaled axis.

Parameters:
  • tight (Any)

  • scalex (Any)

  • scaley (Any)

Return type:

Any

axis(*args, **kwargs)[source]

Class-level hook so Axes.axis is discoverable; instances use _AxisAccessor.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

bar(x, height, width=0.8, bottom=0.0, color=None, edgecolor=None, label='', align='center', alpha=None, linewidth=None, yerr=None, **kwargs)

Vertical bars; color may be a single colour or one per bar.

Parameters:
  • x (Any)

  • height (Any)

  • width (Any)

  • bottom (Any)

  • color (Any)

  • edgecolor (Any)

  • label (Any)

  • align (Any)

  • alpha (Any)

  • linewidth (Any)

  • yerr (Any)

  • kwargs (Any)

Return type:

Any

barh(y, width, height=0.8, left=0.0, color=None, edgecolor=None, label='', align='center', alpha=None, linewidth=None, **kwargs)

Horizontal bars, stored as the same rectangles as bar.

Parameters:
  • y (Any)

  • width (Any)

  • height (Any)

  • left (Any)

  • color (Any)

  • edgecolor (Any)

  • label (Any)

  • align (Any)

  • alpha (Any)

  • linewidth (Any)

  • kwargs (Any)

Return type:

Any

boxplot(x, notch=None, sym=None, vert=None, whis=None, positions=None, widths=None, patch_artist=None, labels=None, orientation=None, showmeans=False, showcaps=None, showbox=None, showfliers=None, meanline=False, capwidths=None, boxprops=None, medianprops=None, whiskerprops=None, capprops=None, flierprops=None, meanprops=None, manage_ticks=True, autorange=False, label=None, tick_labels=None, **kwargs)

Box-and-whisker plot for one dataset or a sequence of datasets.

Returns a dict with boxes, medians, whiskers, caps, fliers and means lists, matching matplotlib’s boxplot result.

Parameters:
  • x (Any)

  • notch (Any)

  • sym (Any)

  • vert (Any)

  • whis (Any)

  • positions (Any)

  • widths (Any)

  • patch_artist (Any)

  • labels (Any)

  • orientation (Any)

  • showmeans (Any)

  • showcaps (Any)

  • showbox (Any)

  • showfliers (Any)

  • meanline (Any)

  • capwidths (Any)

  • boxprops (Any)

  • medianprops (Any)

  • whiskerprops (Any)

  • capprops (Any)

  • flierprops (Any)

  • meanprops (Any)

  • manage_ticks (Any)

  • autorange (Any)

  • label (Any)

  • tick_labels (Any)

  • kwargs (Any)

Return type:

Any

colorbar(mappable=None, **kwargs)[source]

Draw a colorbar for mappable in this axes’ right margin.

Parameters:
  • mappable (Any)

  • kwargs (Any)

Return type:

Any

drag_pan(button, key, x, y)[source]

Shift the view by the display-space drag since start_pan.

Parameters:
  • button (Any)

  • key (Any)

  • x (Any)

  • y (Any)

Return type:

Any

errorbar(x, y, yerr=None, xerr=None, fmt='', ecolor=None, elinewidth=None, capsize=None, label='', color=None, **kwargs)

Plot y against x with vertical (yerr) and/or horizontal (xerr) error bars; each error may be a scalar, a length-N array, or (2, N) lo/hi.

Parameters:
  • x (Any)

  • y (Any)

  • yerr (Any)

  • xerr (Any)

  • fmt (Any)

  • ecolor (Any)

  • elinewidth (Any)

  • capsize (Any)

  • label (Any)

  • color (Any)

  • kwargs (Any)

Return type:

Any

fill(*args, color=None, alpha=None, label='', **kwargs)

Filled polygons: every x, y pair is one polygon, optionally followed by its own colour, as in Matplotlib (fill(x, y, x2, y2) draws two polygons, not one polygon through both).

Parameters:
  • args (Any)

  • color (Any)

  • alpha (Any)

  • label (Any)

  • kwargs (Any)

Return type:

None

fill_between(x, y1, y2=0.0, where=None, interpolate=False, color=None, alpha=None, label='', step=None, **kwargs)

Fill between two curves; where masks split the area into runs.

Parameters:
  • x (Any)

  • y1 (Any)

  • y2 (Any)

  • where (Any)

  • interpolate (Any)

  • color (Any)

  • alpha (Any)

  • label (Any)

  • step (Any)

  • kwargs (Any)

Return type:

Any

format_coord(x, y)[source]

Human-readable data coordinates for pointer readouts.

Parameters:
  • x (Any)

  • y (Any)

Return type:

Any

format_cursor_data(data)[source]

Format one data value the way Matplotlib’s status bar does.

Parameters:

data (Any)

Return type:

Any

get_clip_path()[source]

The stored clip path, or the axes rectangle in data coordinates.

Return type:

Any

get_cursor_data(event)[source]

The image value under event, or None when no image is hit.

Parameters:

event (Any)

Return type:

Any

get_forward_navigation_events()[source]

The stored navigation-event policy, “auto” by default.

Return type:

Any

get_legend()[source]

The legend handle when a legend is shown, otherwise None.

Return type:

Any

get_position(original=False)[source]

Figure-fraction box: the grid cell, or whatever set_position stored.

Parameters:

original (Any)

Return type:

Any

get_subplotspec()[source]

The SubplotSpec this axes was created from, or its grid cell.

Return type:

Any

get_window_extent(renderer=None)[source]

Pixel box covering the axes plus the space its labels and title use.

Parameters:

renderer (Any)

Return type:

Any

get_xgridlines()[source]

Major and minor x gridline handles, as Matplotlib returns.

Return type:

Any

get_ygridlines()[source]

Major and minor y gridline handles, as Matplotlib returns.

Return type:

Any

imshow(X, cmap=None, vmin=None, vmax=None, extent=None, origin='upper', interpolation=None, aspect=None, alpha=None, clim=None, norm=None, colorizer=None, **kwargs)

Draw an array as an image. X is 2-D (mapped through cmap) or (H, W, 3|4) RGB(A) floats in 0-1. interpolation accepts none, nearest, antialiased, bilinear or bicubic; alpha scales the image’s opacity. When omitted, rcParams[“image.interpolation”] supplies the default. clim and Matplotlib’s extra artist kwargs are accepted.

Parameters:
  • X (Any)

  • cmap (Any)

  • vmin (Any)

  • vmax (Any)

  • extent (Any)

  • origin (Any)

  • interpolation (Any)

  • aspect (Any)

  • alpha (Any)

  • clim (Any)

  • norm (Any)

  • colorizer (Any)

  • kwargs (Any)

Return type:

Any

inset_axes(bounds, *, transform=None, zorder=5, **kwargs)[source]

Place a child axes inside this one, in axes-fraction coordinates.

Parameters:
  • bounds (Any)

  • transform (Any)

  • zorder (Any)

  • kwargs (Any)

Return type:

Any

label_outer(remove_inner_ticks=False)[source]

Hide tick labels on non-outer axes of a subplot grid.

x labels stay on the last row and y labels on the first column. Inner tick marks are kept (remove_inner_ticks only changes labels here).

Parameters:

remove_inner_ticks (Any)

Return type:

Any

locator_params(axis='both', tight=None, **kwargs)[source]

Configure the major locator’s tick budget (nbins, steps, …).

Installs a MaxNLocator on axes that do not have an explicit locator.

Parameters:
  • axis (Any)

  • tight (Any)

  • kwargs (Any)

Return type:

Any

margins(*margins, x=None, y=None, tight=True)[source]

Set the autoscale margins and return the current (x, y) values.

One positional value applies to both axes; two set x and y. The margins feed get_xlim/get_ylim the next time they autoscale.

Parameters:
  • margins (Any)

  • x (Any)

  • y (Any)

  • tight (Any)

Return type:

Any

pick(mouseevent)[source]

Dispatch a pick event to children that implement pick.

Parameters:

mouseevent (Any)

Return type:

Any

pie(x, labels=None, colors=None, autopct=None, explode=None, startangle=0, normalize=True, shadow=False, **kwargs)

Pie chart drawn as filled wedges; returns (wedges, texts, autotexts).

Parameters:
  • x (Any)

  • labels (Any)

  • colors (Any)

  • autopct (Any)

  • explode (Any)

  • startangle (Any)

  • normalize (Any)

  • shadow (Any)

  • kwargs (Any)

Return type:

Any

pie_label(container, labels, *, distance=0.6, textprops=None, rotate=False, alignment='auto')[source]

Label the wedges of a pie container, as Matplotlib 3.11.

labels is a sequence of strings or a format string using the absval and frac placeholders. When rotate is true each label follows its wedge; alignment is “center”, “outer” or “auto”.

Parameters:
  • container (Any)

  • labels (Any)

  • distance (Any)

  • textprops (Any)

  • rotate (Any)

  • alignment (Any)

Return type:

Any

properties()[source]

Current public state, mirroring Artist.properties().

Return type:

Any

relim(visible_only=True)[source]

Recompute the data limits from the current artists.

Matplotvite derives extents from the artists on every access, so this only drops explicit limits on axes that still autoscale, mirroring the relim + redraw cycle.

Parameters:

visible_only (Any)

Return type:

Any

set(**kwargs)[source]

ax.set(xlim=, ylim=, xlabel=, title=, xticks=, aspect=, …) shorthand.

Parameters:

kwargs (Any)

Return type:

Any

set_adjustable(adjustable, share=False)[source]

‘box’ shrinks the plot area, ‘datalim’ bends the data limits.

Parameters:
  • adjustable (Any)

  • share (Any)

Return type:

Any

set_forward_navigation_events(visible)[source]

Store whether navigation events pass through this axes.

Parameters:

visible (Any)

Return type:

Any

set_prop_cycle(*args, **kwargs)[source]

Replace the colour cycle used by artists without an explicit colour.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

set_rgrids(radii, labels=None, angle=None, fmt=None, **kwargs)[source]

Set the radial grid positions, as PolarAxes.set_rgrids.

Parameters:
  • radii (Any)

  • labels (Any)

  • angle (Any)

  • fmt (Any)

  • kwargs (Any)

Return type:

Any

set_rticks(ticks, labels=None, **kwargs)[source]

Set the radial tick positions, as PolarAxes.set_rticks.

Parameters:
  • ticks (Any)

  • labels (Any)

  • kwargs (Any)

Return type:

Any

set_thetagrids(angles, labels=None, fmt=None, **kwargs)[source]

Set the angular grid positions, as PolarAxes.set_thetagrids.

Parameters:
  • angles (Any)

  • labels (Any)

  • fmt (Any)

  • kwargs (Any)

Return type:

Any

set_xlim(left=None, right=None, **kwargs)[source]

Set the x limits; accepts left/right or Matplotlib’s xmin/xmax.

auto turns x autoscaling on (True), off (False, the default), or leaves it unchanged (None), as Matplotlib does.

Parameters:
  • left (Any)

  • right (Any)

  • kwargs (Any)

Return type:

Any

set_ylim(bottom=None, top=None, **kwargs)[source]

Set the y limits; accepts bottom/top or ymin/ymax.

auto behaves like set_xlim(auto=…).

Parameters:
  • bottom (Any)

  • top (Any)

  • kwargs (Any)

Return type:

Any

stackplot(x, *ys, labels=(), colors=None, alpha=None, baseline='zero', **kwargs)

Stacked areas: each layer fills between the running total and itself.

Parameters:
  • x (Any)

  • ys (Any)

  • labels (Any)

  • colors (Any)

  • alpha (Any)

  • baseline (Any)

  • kwargs (Any)

Return type:

Any

start_pan(x, y, button=None)[source]

Record the anchor for a pan gesture in display coordinates.

Parameters:
  • x (Any)

  • y (Any)

  • button (Any)

Return type:

Any

step(x, y, fmt='', where='pre', label='', color=None, **kwargs)

Staircase line through x/y; where picks the corner placement.

Parameters:
  • x (Any)

  • y (Any)

  • fmt (Any)

  • where (Any)

  • label (Any)

  • color (Any)

  • kwargs (Any)

Return type:

Any

ticklabel_format(*, axis='both', style=None, scilimits=None, useOffset=None, useLocale=None, useMathText=None)[source]

Switch an axis between plain and scientific tick labels.

style is ‘plain’, ‘sci’ or None; scilimits must be a pair of exponents, as Matplotlib requires. The formatter writes each label in the requested style; there is no separate offset text yet.

Parameters:
  • axis (Any)

  • style (Any)

  • scilimits (Any)

  • useOffset (Any)

  • useLocale (Any)

  • useMathText (Any)

Return type:

Any

twin(*args, **kwargs)[source]

Overlay axes sharing y, with top/right axes (axes_grid1’s twin).

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

twinx(**kwargs)[source]

A second axes sharing the x axis, with its own y axis on the right.

Parameters:

kwargs (Any)

Return type:

Any

twiny(**kwargs)[source]

A second axes sharing the y axis, with its own x axis on top.

Parameters:

kwargs (Any)

Return type:

Any

violinplot(dataset, positions=None, vert=None, widths=0.5, showmeans=False, showextrema=True, showmedians=False, quantiles=None, points=100, bw_method=None, orientation=None, side='both', **kwargs)

Violin plot: a Gaussian KDE per dataset drawn as a filled violin.

Returns a dict with bodies, cmeans, cmaxes, cmins and cbars (plus cquantiles when quantiles is given).

Parameters:
  • dataset (Any)

  • positions (Any)

  • vert (Any)

  • widths (Any)

  • showmeans (Any)

  • showextrema (Any)

  • showmedians (Any)

  • quantiles (Any)

  • points (Any)

  • bw_method (Any)

  • orientation (Any)

  • side (Any)

  • kwargs (Any)

Return type:

Any

xticks(ticks=None, labels=None, **kwargs)[source]

plt.xticks(…) shim: set ticks/labels or return the current pair.

Parameters:
  • ticks (Any)

  • labels (Any)

  • kwargs (Any)

Return type:

Any

yticks(ticks=None, labels=None, **kwargs)[source]

plt.yticks(…) shim, mirroring xticks.

Parameters:
  • ticks (Any)

  • labels (Any)

  • kwargs (Any)

Return type:

Any

class matplotvite.Axes3D(*args, **kwargs)[source]

Bases: Axes

Compatibility axes for the Axes3D imports used by gallery tests.

The renderer is two-dimensional, so collections and limits are accepted and drawn on the flat panel instead of raising a projection error.

Parameters:
  • args (Any)

  • kwargs (Any)

class matplotvite.AxesImage(entry=None, axes=None, *, extent=None, cmap='viridis', interpolation='nearest', alpha=1.0, origin='upper', **kwargs)[source]

Bases: object

Handle returned by Axes.imshow, for later tweaks.

The constructor also accepts Matplotlib’s artist form, AxesImage(axes, extent=…, cmap=…, interpolation=…), which subclasses use before calling set_array.

Parameters:
  • entry (Any)

  • axes (Any)

  • extent (Any)

  • cmap (Any)

  • interpolation (Any)

  • alpha (Any)

  • origin (Any)

  • kwargs (Any)

set(**kwargs)[source]

Apply Matplotlib’s image .set(data=…, extent=…, clim=…) form.

Parameters:

kwargs (Any)

Return type:

Any

matplotvite.Bbox

alias of _Bbox

class matplotvite.BboxImage(bbox, norm=None, origin=None, **kwargs)[source]

Bases: object

Image positioned by a bbox callback, used by text-path examples.

Parameters:
  • bbox (Any)

  • norm (Any)

  • origin (Any)

  • kwargs (Any)

class matplotvite.CapStyle[source]

Bases: str

class matplotvite.Circle(xy, radius=5, **kwargs)[source]

Bases: Patch

Parameters:
  • xy (Any)

  • radius (Any)

  • kwargs (Any)

class matplotvite.Collection(colors=None, facecolor=None, edgecolor=None, linewidths=None, alpha=None, label='', zorder=1, **kwargs)[source]

Bases: object

Base compatibility object for Matplotlib collection artists.

Parameters:
  • colors (Any)

  • facecolor (Any)

  • edgecolor (Any)

  • linewidths (Any)

  • alpha (Any)

  • label (Any)

  • zorder (Any)

  • kwargs (Any)

class matplotvite.Colorbar(ax=None, mappable=None, *, cmap=None, norm=None, values=None, boundaries=None, orientation=None, ticklocation='auto', extend=None, spacing='uniform', ticks=None, format=None, drawedges=False, extendfrac=None, extendrect=False, label='', **kwargs)[source]

Bases: object

Handle returned by Figure.colorbar or constructed around an axes.

Parameters:
  • ax (Any)

  • mappable (Any)

  • cmap (Any)

  • norm (Any)

  • values (Any)

  • boundaries (Any)

  • orientation (Any)

  • ticklocation (Any)

  • extend (Any)

  • spacing (Any)

  • ticks (Any)

  • format (Any)

  • drawedges (Any)

  • extendfrac (Any)

  • extendrect (Any)

  • label (Any)

  • kwargs (Any)

class matplotvite.Colormap(name)

Bases: object

A named colormap that samples values to RGB(A) tuples.

matplotvite.ConciseDateConverter

alias of _ConciseDateConverter

matplotvite.ConciseDateFormatter

alias of _ConciseDateFormatter

class matplotvite.ConnectionPatch(xyA, xyB, coordsA='data', coordsB='data', axesA=None, axesB=None, **kwargs)[source]

Bases: FancyArrowPatch

Parameters:
  • xyA (Any)

  • xyB (Any)

  • coordsA (Any)

  • coordsB (Any)

  • axesA (Any)

  • axesB (Any)

  • kwargs (Any)

class matplotvite.ContourSet(ax=None, levels=None, segments=None, *args, axes=None, **kwargs)[source]

Bases: object

Handle returned by Axes.contour / Axes.contourf.

Parameters:
  • ax (Any)

  • levels (Any)

  • segments (Any)

  • args (Any)

  • axes (Any)

  • kwargs (Any)

clabel(levels=None, *, fontsize=None, inline=True, inline_spacing=5, fmt=None, colors=None, use_clabeltext=False, manual=False, rightside_up=True, zorder=None, **kwargs)[source]

Label each contour level at its longest segment or at given points.

Labels are drawn horizontally or vertically, whichever is closer to the local line direction; Matplotlib’s inline gap is not cut out of the line. manual accepts a sequence of data-coordinate positions, as Matplotlib’s gallery does; manual=True falls back to automatic placement.

Parameters:
  • levels (Any)

  • fontsize (Any)

  • inline (Any)

  • inline_spacing (Any)

  • fmt (Any)

  • colors (Any)

  • use_clabeltext (Any)

  • manual (Any)

  • rightside_up (Any)

  • zorder (Any)

  • kwargs (Any)

Return type:

Any

legend_elements(variable_name='x', str_format=None, **kwargs)[source]

Handles and labels for one entry per contour level.

Parameters:
  • variable_name (Any)

  • str_format (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.DateFormatter

alias of _DateFormatter

matplotvite.DayLocator

alias of _DayLocator

class matplotvite.DrawingArea(width, height, xdescent=0, ydescent=0, clip=False)[source]

Bases: object

A fixed-size box of arbitrary artists.

Parameters:
  • width (Any)

  • height (Any)

  • xdescent (Any)

  • ydescent (Any)

  • clip (Any)

class matplotvite.Ellipse(xy, width, height, angle=0.0, **kwargs)[source]

Bases: Patch

Parameters:
  • xy (Any)

  • width (Any)

  • height (Any)

  • angle (Any)

  • kwargs (Any)

get_co_vertices()[source]

The two rotated minor-axis endpoints, as Matplotlib exposes them.

Return type:

Any

class matplotvite.EllipseCollection(widths, heights, angles, units='points', offsets=None, offset_transform=None, **kwargs)[source]

Bases: PolyCollection

Ellipses at offsets, with widths/heights in points or data units.

Parameters:
  • widths (Any)

  • heights (Any)

  • angles (Any)

  • units (Any)

  • offsets (Any)

  • offset_transform (Any)

  • kwargs (Any)

matplotvite.EngFormatter

alias of _EngFormatter

class matplotvite.EventCollection(positions, orientation='horizontal', lineoffset=0, linelength=1, **kwargs)[source]

Bases: LineCollection

Parameters:
  • positions (Any)

  • orientation (Any)

  • lineoffset (Any)

  • linelength (Any)

  • kwargs (Any)

class matplotvite.FT2Font(filename)[source]

Bases: object

Small font-inspection stand-in backed by the bundled DejaVu metrics.

Parameters:

filename (Any)

get_kerning(left, right, mode=0)[source]

The bundled metrics shim has no kerning table.

Parameters:
  • left (Any)

  • right (Any)

  • mode (Any)

Return type:

int

get_name_index(name)[source]

Index of a named font table entry; the stand-in has none.

Parameters:

name (Any)

Return type:

int

set_charmap(charmap)[source]

Select a character map; the bundled font only has one.

Parameters:

charmap (Any)

Return type:

None

class matplotvite.FaceFlags[source]

Bases: object

ft2font.FaceFlags: the capabilities of a font face.

class matplotvite.FancyArrow(x, y, dx, dy, width=0.001, length_includes_head=False, head_width=None, head_length=None, **kwargs)[source]

Bases: Patch

Parameters:
  • x (Any)

  • y (Any)

  • dx (Any)

  • dy (Any)

  • width (float)

  • length_includes_head (bool)

  • head_width (Any)

  • head_length (Any)

  • kwargs (Any)

class matplotvite.FancyArrowPatch(posA=None, posB=None, arrowstyle='-', mutation_scale=1.0, **kwargs)[source]

Bases: Patch

Parameters:
  • posA (Any)

  • posB (Any)

  • arrowstyle (Any)

  • mutation_scale (Any)

  • kwargs (Any)

class matplotvite.FancyBboxPatch(xy, width, height, boxstyle='round', mutation_scale=1.0, **kwargs)[source]

Bases: Patch

Parameters:
  • xy (Any)

  • width (Any)

  • height (Any)

  • boxstyle (Any)

  • mutation_scale (Any)

  • kwargs (Any)

class matplotvite.Figure(figsize=None, dpi=None, facecolor=None, edgecolor=None)[source]

Bases: object

A figure holding one or more axes plus figure-level artists.

Parameters:
  • figsize (Any)

  • dpi (Any)

  • facecolor (Any)

  • edgecolor (Any)

add_axes(rect=None, **kwargs)[source]

Add an axes whose figure-fraction rectangle is the plotting area.

Parameters:
  • rect (Any)

  • kwargs (Any)

Return type:

Any

add_subplot(nrows=1, ncols=1, index=1, **kwargs)[source]

index is 1-based, row-major (matplotlib convention); a SubplotSpec may be passed instead to place the axes on an irregular grid.

Parameters:
  • nrows (Any)

  • ncols (Any)

  • index (Any)

  • kwargs (Any)

Return type:

Any

clf(keep_observers=False)[source]

Clear every axes and figure-level artist, keeping the figure itself.

Parameters:

keep_observers (Any)

Return type:

None

colorbar(mappable=None, ax=None, label='', **kwargs)[source]

Reserve a strip beside mappable’s axes showing its scale.

Parameters:
  • mappable (Any)

  • ax (Any)

  • label (Any)

  • kwargs (Any)

Return type:

Any

figimage(X, xo=0, yo=0, alpha=None, norm=None, cmap=None, vmin=None, vmax=None, origin=None, resize=False, **kwargs)[source]

Place an image directly on the figure at pixel offsets from the lower-left corner. resize and artist kwargs are accepted and ignored.

Parameters:
  • X (Any)

  • xo (Any)

  • yo (Any)

  • alpha (Any)

  • norm (Any)

  • cmap (Any)

  • vmin (Any)

  • vmax (Any)

  • origin (Any)

  • resize (Any)

  • kwargs (Any)

Return type:

Any

findobj(match=None, include_self=True)[source]

Return children accepted by match, a class or predicate.

Parameters:
  • match (Any)

  • include_self (Any)

Return type:

Any

pick(mouseevent)[source]

Dispatch a pick event to every axes, as Figure.pick.

Parameters:

mouseevent (Any)

Return type:

Any

savefig(fname=None, format=None, dpi=None, bbox_inches=None, transparent=None, facecolor=None, edgecolor=None, compression=None, pad_inches=None, metadata=None, pil_kwargs=None, **kwargs)[source]

Write this figure, or return its bytes when fname is None or a file-like object. format overrides the extension, dpi scales the pixel size and bbox_inches=”tight” crops to the drawn content. compression selects PNG compression: “fast” (default), “default”, or “best”. metadata and pil_kwargs are accepted for Matplotlib compatibility; the renderer currently has no metadata model for them.

Parameters:
  • fname (Any)

  • format (Any)

  • dpi (Any)

  • bbox_inches (Any)

  • transparent (Any)

  • facecolor (Any)

  • edgecolor (Any)

  • compression (Any)

  • pad_inches (Any)

  • metadata (Any)

  • pil_kwargs (Any)

  • kwargs (Any)

Return type:

Any

subfigures(nrows=1, ncols=1, squeeze=True, **kwargs)[source]

Create independent subfigure views that place their own axes.

Parameters:
  • nrows (Any)

  • ncols (Any)

  • squeeze (Any)

  • kwargs (Any)

Return type:

Any

subplot_mosaic(mosaic, empty_sentinel='.', **kwargs)[source]

Create one axes per mosaic label from a string or list-of-lists grid.

Parameters:
  • mosaic (Any)

  • empty_sentinel (Any)

  • kwargs (Any)

Return type:

Any

suptitle(t, x=0.5, y=0.98, fontsize=None, **kwargs)[source]

Draw a figure-level title above the panel grid.

Parameters:
  • t (Any)

  • x (Any)

  • y (Any)

  • fontsize (Any)

  • kwargs (Any)

Return type:

Any

supxlabel(t, x=0.5, y=0.01, fontsize=None, **kwargs)[source]

Draw a figure-level x label below the panel grid.

Parameters:
  • t (Any)

  • x (Any)

  • y (Any)

  • fontsize (Any)

  • kwargs (Any)

Return type:

Any

supylabel(t, x=0.02, y=0.5, fontsize=None, **kwargs)[source]

Draw a figure-level y label left of the panel grid.

Parameters:
  • t (Any)

  • x (Any)

  • y (Any)

  • fontsize (Any)

  • kwargs (Any)

Return type:

Any

text(x, y, s, fontdict=None, **kwargs)[source]

Figure-fraction text, drawn above every panel so nothing clips it.

Parameters:
  • x (Any)

  • y (Any)

  • s (Any)

  • fontdict (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.FixedFormatter

alias of _FixedFormatter

matplotvite.FixedLocator

alias of _FixedLocator

class matplotvite.FontProperties(family=None, style=None, variant=None, weight=None, stretch=None, size=None, fname=None, math_fontfamily=None, **kwargs)[source]

Bases: object

FontProperties accepts Matplotlib’s font settings; size is the one the renderer uses, the rest are kept for code that reads them back.

Parameters:
  • family (Any)

  • style (Any)

  • variant (Any)

  • weight (Any)

  • stretch (Any)

  • size (Any)

  • fname (Any)

  • math_fontfamily (Any)

  • kwargs (Any)

class matplotvite.FormatStrFormatter(fmt)[source]

Bases: object

Old-style % formatter used by FormatStrFormatter.

Parameters:

fmt (Any)

class matplotvite.FuncFormatter(func)[source]

Bases: object

Formatter backed by a user function, as matplotlib.ticker.FuncFormatter.

Parameters:

func (Any)

class matplotvite.GridSpec(nrows, ncols, figure=None, left=0.0, right=1.0, bottom=0.0, top=1.0, wspace=None, hspace=None, width_ratios=None, height_ratios=None)[source]

Bases: object

Irregular row/column layout; index it to get a SubplotSpec.

Parameters:
  • nrows (int)

  • ncols (int)

  • figure (Any)

  • left (float)

  • right (float)

  • bottom (float)

  • top (float)

  • wspace (Any)

  • hspace (Any)

  • width_ratios (Any)

  • height_ratios (Any)

class matplotvite.HPacker(children=(), align='left', pad=0, sep=0, mode='fixed', **kwargs)[source]

Bases: VPacker

Parameters:
  • children (Any)

  • align (Any)

  • pad (Any)

  • sep (Any)

  • mode (Any)

  • kwargs (Any)

class matplotvite.HandlerLineCollection(**kwargs)[source]

Bases: object

Legend handler that draws a line-collection sample.

Parameters:

kwargs (Any)

class matplotvite.HandlerTuple(ndivide=None, pad=None, **kwargs)[source]

Bases: object

Legend handler that packs tuple entries into one row; drawing is a no-op.

Parameters:
  • ndivide (Any)

  • pad (Any)

  • kwargs (Any)

matplotvite.HourLocator

alias of _HourLocator

class matplotvite.JoinStyle[source]

Bases: str

class matplotvite.Kerning[source]

Bases: object

Kerning modes accepted by FT2Font.get_kerning.

class matplotvite.LightSource(azdeg=315, altdeg=45, hsv_min_val=0, hsv_max_val=1, hsv_min_sat=1, hsv_max_sat=0)[source]

Bases: object

Light source for hillshading, matching Matplotlib’s blend modes.

Parameters:
  • azdeg (Any)

  • altdeg (Any)

  • hsv_min_val (Any)

  • hsv_max_val (Any)

  • hsv_min_sat (Any)

  • hsv_max_sat (Any)

class matplotvite.LineCollection(segments, colors=None, linewidths=None, label='', **kwargs)[source]

Bases: Collection

Parameters:
  • segments (Any)

  • colors (Any)

  • linewidths (Any)

  • label (Any)

  • kwargs (Any)

matplotvite.LinearLocator

alias of _LinearLocator

matplotvite.LogLocator

alias of _LogLocator

class matplotvite.MarkerStyle(marker='o', fillstyle=None, transform=None, capstyle=None, joinstyle=None)[source]

Bases: object

Marker descriptor, as matplotlib.markers.MarkerStyle.

Parameters:
  • marker (Any)

  • fillstyle (Any)

  • transform (Any)

  • capstyle (Any)

  • joinstyle (Any)

matplotvite.MaxNLocator

alias of _MaxNLocator

matplotvite.MicrosecondLocator

alias of _SecondLocator

matplotvite.MinuteLocator

alias of _MinuteLocator

matplotvite.MonthLocator

alias of _MonthLocator

class matplotvite.MouseEvent(name, canvas, x, y, button=None, key=None, step=0, dblclick=False, guiEvent=None)[source]

Bases: object

Headless mouse event used by examples that simulate a pointer move.

Parameters:
  • name (Any)

  • canvas (Any)

  • x (Any)

  • y (Any)

  • button (Any)

  • key (Any)

  • step (Any)

  • dblclick (Any)

  • guiEvent (Any)

matplotvite.MultipleLocator

alias of _MultipleLocator

class matplotvite.NonUniformImage(ax=None, *, extent=None, cmap=None, interpolation='nearest', **kwargs)[source]

Bases: object

Rectilinear image; irregular coordinate arrays are resampled for display.

Parameters:
  • ax (Any)

  • extent (Any)

  • cmap (Any)

  • interpolation (Any)

  • kwargs (Any)

class matplotvite.Normalize(vmin=None, vmax=None, clip=False)

Bases: object

A linear normalization that maps data values into the 0-1 range.

matplotvite.NullLocator

alias of _NoopLocator

class matplotvite.OffsetFrom(artist, ref_coord, unit='points')[source]

Bases: object

Text offset anchored to another artist’s bbox; only the values are kept.

Parameters:
  • artist (Any)

  • ref_coord (Any)

  • unit (Any)

class matplotvite.OffsetImage(arr, zoom=1, cmap=None, norm=None, interpolation=None, origin=None, filternorm=True, filterrad=4.0, resample=False, dpi_cor=True, **kwargs)[source]

Bases: object

Image container for annotations; the array is retained for callers.

Parameters:
  • arr (Any)

  • zoom (Any)

  • cmap (Any)

  • norm (Any)

  • interpolation (Any)

  • origin (Any)

  • filternorm (Any)

  • filterrad (Any)

  • resample (Any)

  • dpi_cor (Any)

  • kwargs (Any)

class matplotvite.PaddedBox(child, pad=0.0, draw_frame=False, patch_attrs=None, **kwargs)[source]

Bases: object

A child offset box with padding; the renderer has no frame model.

Parameters:
  • child (Any)

  • pad (Any)

  • draw_frame (Any)

  • patch_attrs (Any)

  • kwargs (Any)

class matplotvite.Patch(**kwargs)[source]

Bases: object

Base class for matplotlib-style patches accepted by add_patch.

Parameters:

kwargs (Any)

set(**kwargs)[source]

Apply Matplotlib artist properties by name, as patch.set(color=…).

Parameters:

kwargs (Any)

Return type:

Any

class matplotvite.PatchCollection(patches, colors=None, **kwargs)[source]

Bases: LineCollection

Parameters:
  • patches (Any)

  • colors (Any)

  • kwargs (Any)

class matplotvite.Path(vertices, codes=None, **kwargs)[source]

Bases: object

Minimal path container used by PathPatch.

Parameters:
  • vertices (Any)

  • codes (Any)

  • kwargs (Any)

intersects_bbox(bbox, filled=True)[source]

Whether any segment of the path touches bbox.

Parameters:
  • bbox (Any)

  • filled (Any)

Return type:

Any

classmethod make_compound_path_from_polys(XY)[source]

Build a compound path from an array of polygons, (n, sides, 2).

Parameters:

XY (Any)

Return type:

Any

class matplotvite.PathCollection(paths, sizes=None, offsets=None, **kwargs)[source]

Bases: LineCollection

Parameters:
  • paths (Any)

  • sizes (Any)

  • offsets (Any)

  • kwargs (Any)

class matplotvite.PathPatch(path, **kwargs)[source]

Bases: Patch

Parameters:
  • path (Any)

  • kwargs (Any)

class matplotvite.PdfPages(filename, keep_empty=True, metadata=None)[source]

Bases: object

Collect figures and write them as pages of one PDF document.

Each savefig renders its figure to SVG and keeps the page in memory; close (or leaving the context manager) assembles the document. Metadata and annotations are accepted but only infodict stores them.

Parameters:
  • filename (Any)

  • keep_empty (Any)

  • metadata (Any)

attach_note(text, position=None)[source]

Accepted for compatibility; notes are not written into the PDF.

Parameters:
  • text (Any)

  • position (Any)

Return type:

Any

infodict()[source]

The metadata mapping passed to the constructor.

Return type:

Any

matplotvite.PercentFormatter

alias of _PercentFormatter

class matplotvite.PolarAxes(*args, **kwargs)[source]

Bases: Axes

Polar axes drawn by projecting theta/r data into Cartesian series.

The renderer has one Cartesian panel model, so polar support lives here: data and grid geometry are projected before they reach _panel, while labels and frames are ordinary line and text entries.

Parameters:
  • args (Any)

  • kwargs (Any)

bar(x, height, width=0.8, bottom=0.0, color=None, edgecolor=None, label='', align='center', alpha=None, linewidth=None, yerr=None, **kwargs)[source]

Polar bars as filled annular wedges.

Parameters:
  • x (Any)

  • height (Any)

  • width (Any)

  • bottom (Any)

  • color (Any)

  • edgecolor (Any)

  • label (Any)

  • align (Any)

  • alpha (Any)

  • linewidth (Any)

  • yerr (Any)

  • kwargs (Any)

Return type:

Any

fill(*args, closed=True, **kwargs)[source]

Polar fill, closing the polygon at the first theta by default.

Parameters:
  • args (Any)

  • closed (Any)

  • kwargs (Any)

Return type:

Any

plot(*args, **kwargs)[source]

Line plot with matplotlib’s styling keywords (lw, ls, marker, ms, mfc/mec, alpha, drawstyle) and fmt-string shorthand (“r–o”). data= accepts a DataFrame/Series and x=/y= may name its columns.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

set_rgrids(radii, labels=None, angle=None, fmt=None, **kwargs)[source]

Set the radial grid positions, as PolarAxes.set_rgrids.

Parameters:
  • radii (Any)

  • labels (Any)

  • angle (Any)

  • fmt (Any)

  • kwargs (Any)

Return type:

None

set_rticks(ticks, labels=None, **kwargs)[source]

Set the radial tick positions, as PolarAxes.set_rticks.

Parameters:
  • ticks (Any)

  • labels (Any)

  • kwargs (Any)

Return type:

None

set_thetagrids(angles, labels=None, fmt=None, **kwargs)[source]

Set the angular grid positions, as PolarAxes.set_thetagrids.

Parameters:
  • angles (Any)

  • labels (Any)

  • fmt (Any)

  • kwargs (Any)

Return type:

None

class matplotvite.PolyCollection(verts, colors=None, **kwargs)[source]

Bases: LineCollection

Parameters:
  • verts (Any)

  • colors (Any)

  • kwargs (Any)

class matplotvite.Polygon(xy, closed=True, **kwargs)[source]

Bases: Patch

Parameters:
  • xy (Any)

  • closed (Any)

  • kwargs (Any)

matplotvite.RRuleLocator

alias of _RRuleLocator

class matplotvite.Rectangle(xy, width, height, angle=0.0, **kwargs)[source]

Bases: Patch

Axis-aligned (or rotated) rectangle in data coordinates.

Parameters:
  • xy (Any)

  • width (Any)

  • height (Any)

  • angle (Any)

  • kwargs (Any)

class matplotvite.RegularPolyCollection(numVertices, sizes=None, offsets=None, offset_transform=None, **kwargs)[source]

Bases: LineCollection

Parameters:
  • numVertices (Any)

  • sizes (Any)

  • offsets (Any)

  • offset_transform (Any)

  • kwargs (Any)

class matplotvite.RegularPolygon(xy, numVertices, radius=5, orientation=0, **kwargs)[source]

Bases: Patch

Parameters:
  • xy (Any)

  • numVertices (Any)

  • radius (Any)

  • orientation (Any)

  • kwargs (Any)

class matplotvite.Sankey(ax=None, scale=1.0, offset=0.15, head_angle=100, tolerance=1e-06, **kwargs)[source]

Bases: object

Create Sankey flow diagrams, following matplotlib’s public API.

Parameters:
  • ax (Any)

  • scale (float)

  • offset (float)

  • head_angle (float)

  • tolerance (float)

  • kwargs (Any)

class matplotvite.ScalarMappable(norm=None, cmap=None)[source]

Bases: object

Minimal matplotlib.cm.ScalarMappable for standalone colorbars.

Parameters:
  • norm (Any)

  • cmap (Any)

matplotvite.SecondLocator

alias of _SecondLocator

class matplotvite.Shadow(patch, ox, oy, **kwargs)[source]

Bases: object

Decorative shadow wrapper; the wrapped patch carries the drawing.

Parameters:
  • patch (Any)

  • ox (Any)

  • oy (Any)

  • kwargs (Any)

class matplotvite.StepPatch(values, edges, orientation='vertical', baseline=0.0, **kwargs)[source]

Bases: Patch

Filled step outline from bin values and edges.

Parameters:
  • values (Any)

  • edges (Any)

  • orientation (Any)

  • baseline (Any)

  • kwargs (Any)

class matplotvite.StyleFlags[source]

Bases: object

ft2font.StyleFlags: the font’s style bits.

class matplotvite.SubplotSpec(gridspec, rows, cols)[source]

Bases: object

A rectangular region of a GridSpec, accepted by Figure.add_subplot.

Parameters:
  • gridspec (Any)

  • rows (Any)

  • cols (Any)

subgridspec(nrows, ncols, **kwargs)[source]

Nested grid confined to this region.

Parameters:
  • nrows (Any)

  • ncols (Any)

  • kwargs (Any)

Return type:

Any

class matplotvite.Table(ax, cellText=None, cellColours=None, cellLoc='right', colWidths=None, rowLabels=None, rowColours=None, rowLoc='left', colLabels=None, colColours=None, colLoc='center', loc='bottom', bbox=None, edges='closed', **kwargs)[source]

Bases: object

A lightweight table drawn with axes-fraction text cells.

Parameters:
  • ax (Any)

  • cellText (Any)

  • cellColours (Any)

  • cellLoc (Any)

  • colWidths (Any)

  • rowLabels (Any)

  • rowColours (Any)

  • rowLoc (Any)

  • colLabels (Any)

  • colColours (Any)

  • colLoc (Any)

  • loc (Any)

  • bbox (Any)

  • edges (Any)

  • kwargs (Any)

class matplotvite.TextArea(s, textprops=None, multilinebaseline=False)[source]

Bases: object

Plain text box used by offset-box layouts.

Parameters:
  • s (Any)

  • textprops (Any)

  • multilinebaseline (Any)

class matplotvite.TextPath(xy, s, size=None, prop=None, usetex=False, **kwargs)[source]

Bases: Path

Outline path for a text string.

A full font-outline engine is out of scope for the dependency-free wheel, so the path is a proportional block silhouette covering the string. It is a real Path, so PathPatch, markers, clipping and transforms all work.

Parameters:
  • xy (Any)

  • s (Any)

  • size (Any)

  • prop (Any)

  • usetex (Any)

  • kwargs (Any)

class matplotvite.VPacker(children=(), align='left', pad=0, sep=0, mode='fixed', **kwargs)[source]

Bases: object

Vertical packer; children are added in order by the axes adapter.

Parameters:
  • children (Any)

  • align (Any)

  • pad (Any)

  • sep (Any)

  • mode (Any)

  • kwargs (Any)

class matplotvite.Wedge(center, r, theta1, theta2, width=None, **kwargs)[source]

Bases: Patch

Parameters:
  • center (Any)

  • r (Any)

  • theta1 (Any)

  • theta2 (Any)

  • width (Any)

  • kwargs (Any)

matplotvite.WeekdayLocator

alias of _DayLocator

matplotvite.YearLocator

alias of _YearLocator

matplotvite.annotate(*args, **kwargs)

Call Axes.annotate on the current axes and return its result.

matplotvite.axes(*args, **kwargs)[source]

Compatibility shim: matplotvite lays out subplots on a grid, so this returns the current axes (creating one if needed).

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.axhline(*args, **kwargs)

Call Axes.axhline on the current axes and return its result.

matplotvite.axhspan(*args, **kwargs)

Call Axes.axhspan on the current axes and return its result.

matplotvite.axline(*args, **kwargs)

Call Axes.axline on the current axes and return its result.

matplotvite.axvline(*args, **kwargs)

Call Axes.axvline on the current axes and return its result.

matplotvite.axvspan(*args, **kwargs)

Call Axes.axvspan on the current axes and return its result.

matplotvite.bar(*args, **kwargs)

Call Axes.bar on the current axes and return its result.

matplotvite.bar_label(container, labels=None, fmt='%g', label_type='edge', padding=0, **kwargs)

Call Axes.bar_label on the current axes and return its result.

matplotvite.barh(*args, **kwargs)

Call Axes.barh on the current axes and return its result.

matplotvite.boxplot(*args, **kwargs)

Call Axes.boxplot on the current axes and return its result.

matplotvite.broken_barh(*args, **kwargs)

Call Axes.broken_barh on the current axes and return its result.

matplotvite.clabel(CS, levels=None, **kwargs)

plt.clabel() shim for the current axes.

matplotvite.close(fig=None)[source]

Close the current figure, a numbered/labelled figure, or all figures.

Parameters:

fig (Any)

Return type:

Any

matplotvite.colorbar(mappable=None, ax=None, label='', **kwargs)

Add a colorbar for a mappable to the current figure.

matplotvite.contour(*args, levels=None, colors=None, cmap=None, linewidths=None, alpha=None, **kwargs)

Call Axes.contour on the current axes and return its result.

matplotvite.contourf(*args, levels=None, colors=None, cmap=None, alpha=None, **kwargs)

Call Axes.contourf on the current axes and return its result.

matplotvite.cycler(*args, **kwargs)[source]

Build a colour property cycle, as matplotlib.cycler.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.drange(dstart, dend, delta)

Inclusive sequence of dates from dstart to dend by delta.

Parameters:
  • dstart (Any)

  • dend (Any)

  • delta (Any)

Return type:

list[Any]

matplotvite.draw(*args, **kwargs)[source]

Flush pending drawing work; Matplotvite writes on save, so this is a no-op.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.errorbar(x, y, yerr=None, xerr=None, fmt='', ecolor=None, elinewidth=None, capsize=None, label='', color=None, **kwargs)

Call Axes.errorbar on the current axes and return its result.

matplotvite.eventplot(*args, **kwargs)

Call Axes.eventplot on the current axes and return its result.

matplotvite.fignum_exists(num)[source]

Return whether a figure with the given number is open.

Parameters:

num (Any)

Return type:

bool

matplotvite.figtext(x, y, s, **kwargs)

Place text in figure coordinates on the current figure.

matplotvite.figure(*args, num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, **kwargs)[source]

Create or activate a figure.

A leading sequence sets figsize, as elsewhere in this facade. A leading integer or string is the matplotlib figure number or label; num= is also accepted. The registry is process-wide and guarded by a lock, while the object-oriented Figure API is the thread-safe path.

Parameters:
  • args (Any)

  • num (Any)

  • figsize (Any)

  • dpi (Any)

  • facecolor (Any)

  • edgecolor (Any)

  • kwargs (Any)

Return type:

Figure

matplotvite.fill(*args, **kwargs)

Call Axes.fill on the current axes and return its result.

matplotvite.fill_between(*args, **kwargs)

Call Axes.fill_between on the current axes and return its result.

matplotvite.fill_betweenx(*args, **kwargs)

Call Axes.fill_betweenx on the current axes and return its result.

matplotvite.gca()[source]

Return the current axes, creating one if none exists.

Return type:

Any

matplotvite.gcf()[source]

Return the current figure, creating one if none exists.

Return type:

Figure

matplotvite.get_cmap(name=None, lut=None)[source]

Return a Colormap by registry name (or the image.cmap default).

Parameters:
  • name (Any)

  • lut (Any)

Return type:

Colormap

matplotvite.get_data_path()[source]

Return the directory that holds the bundled data files.

Return type:

str

matplotvite.get_fignums()[source]

Return the numbers of all open figures, in ascending order.

Return type:

list[int]

matplotvite.getp(obj, *args)[source]

Generic getter: getp(artist, “color”) calls artist.get_color().

A sequence of artists is read element by element, as in Matplotlib.

Parameters:
  • obj (Any)

  • args (Any)

Return type:

Any

matplotvite.grid(*args, **kwargs)

Call Axes.grid on the current axes and return its result.

matplotvite.hexbin(*args, **kwargs)

Call Axes.hexbin on the current axes and return its result.

matplotvite.hist(*args, **kwargs)

Call Axes.hist on the current axes and return its result.

matplotvite.hist2d(*args, **kwargs)

Call Axes.hist2d on the current axes and return its result.

matplotvite.hlines(*args, **kwargs)

Call Axes.hlines on the current axes and return its result.

matplotvite.hsv_to_rgb(hsv)[source]

Convert an HSV array in 0..1 to RGB on the trailing axis.

Parameters:

hsv (Any)

Return type:

ndarray

matplotvite.imread(fname, format=None)

Read a PNG natively, or another image format through Pillow.

Parameters:
  • fname (Any)

  • format (str | None)

Return type:

ndarray

matplotvite.imshow(X, cmap=None, vmin=None, vmax=None, extent=None, origin='upper', interpolation=None, aspect=None, alpha=None, **kwargs)

Call Axes.imshow on the current axes and return its result.

matplotvite.ioff(*args, **kwargs)[source]

Disable interactive mode; Matplotvite always renders statically.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.ion(*args, **kwargs)[source]

Enable interactive mode; Matplotvite always renders statically.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.legend(*args, **kwargs)

Call Axes.legend on the current axes and return its result.

matplotvite.loglog(*args, **kwargs)

Call Axes.loglog on the current axes and return its result.

matplotvite.matshow(A, fignum=None, **kwargs)

Call Axes.matshow on the current axes and return its result.

matplotvite.minorticks_off()

Call Axes.minorticks_off on the current axes and return its result.

matplotvite.minorticks_on()

Call Axes.minorticks_on on the current axes and return its result.

matplotvite.pause(*args, **kwargs)[source]

Pause for an interval; Matplotvite has no interactive backend, so this is a no-op.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.pcolor(*args, **kwargs)

Call Axes.pcolor on the current axes and return its result.

matplotvite.pcolorfast(*args, **kwargs)

Call Axes.pcolorfast on the current axes and return its result.

matplotvite.pcolormesh(*args, **kwargs)

Call Axes.pcolormesh on the current axes and return its result.

matplotvite.pie(*args, **kwargs)

Call Axes.pie on the current axes and return its result.

matplotvite.pie_label(*args, **kwargs)

Call Axes.pie_label on the current axes and return its result.

matplotvite.plot(*args, **kwargs)[source]

Call Axes.plot on the current axes and return its result.

A pandas DataFrame/Series with a kind= keyword is dispatched to the pandas plotting backend, so pd.options.plotting.backend = "matplotvite" works without a separate backend module.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.polar(*args, **kwargs)

Call Axes.polar on the current axes and return its result.

matplotvite.quiver(*args, **kwargs)

Call Axes.quiver on the current axes and return its result.

matplotvite.rc(group=None, **kwargs)[source]

Record rc settings. rc(“lines”, linewidth=2) maps to lines.linewidth.

Parameters:
  • group (Any)

  • kwargs (Any)

Return type:

None

matplotvite.rc_context(rc=None, fname=None)[source]

Apply rc overrides for the duration of the block, then restore them.

Parameters:
  • rc (Any)

  • fname (Any)

Return type:

Iterator[Any]

matplotvite.rcdefaults()[source]

Restore rcParams to the built-in defaults.

Return type:

None

matplotvite.register_projection(cls)

Register a projection class under its name, as Matplotlib does.

Parameters:

cls (Any)

Return type:

None

matplotvite.rgb_to_hsv(rgb)[source]

Convert an RGB(A) array in 0..1 to HSV on the trailing axis.

Parameters:

rgb (Any)

Return type:

ndarray

matplotvite.rrulewrapper

alias of _rrulewrapper

matplotvite.same_color(*colors)[source]

True when every colour argument normalises to the same value.

Parameters:

colors (Any)

Return type:

bool

matplotvite.savefig(fname=None, format=None, dpi=None, bbox_inches=None, transparent=None, facecolor=None, edgecolor=None, compression=None, pad_inches=None, metadata=None, pil_kwargs=None, **kwargs)[source]

Save the current figure, inferring the format from the filename.

Parameters:
  • fname (Any)

  • format (Any)

  • dpi (Any)

  • bbox_inches (Any)

  • transparent (Any)

  • facecolor (Any)

  • edgecolor (Any)

  • compression (Any)

  • pad_inches (Any)

  • metadata (Any)

  • pil_kwargs (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.scatter(x, y, s=None, c=None, alpha=None, cmap=None, label='', marker='o', vmin=None, vmax=None, data=None, norm=None, **kwargs)

Call Axes.scatter on the current axes and return its result.

matplotvite.semilogx(*args, **kwargs)

Call Axes.semilogx on the current axes and return its result.

matplotvite.semilogy(*args, **kwargs)

Call Axes.semilogy on the current axes and return its result.

matplotvite.set_cmap(cmap)[source]

Set the default colormap used by image-like artists.

Parameters:

cmap (Any)

Return type:

Any

matplotvite.setp(obj, *args, **kwargs)[source]

Generic setter: setp(artist, color=”red”) calls artist.set_color().

A sequence of artists is updated element by element, as in Matplotlib.

Parameters:
  • obj (Any)

  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.show(*args, **kwargs)[source]

Display figures; Matplotvite has no window backend, so this is a no-op.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.spy(Z, precision=0, marker=None, markersize=None, aspect='equal', origin='upper', **kwargs)

Call Axes.spy on the current axes and return its result.

matplotvite.stackplot(*args, **kwargs)

Call Axes.stackplot on the current axes and return its result.

matplotvite.stairs(*args, **kwargs)

Call Axes.stairs on the current axes and return its result.

matplotvite.stem(*args, **kwargs)

Call Axes.stem on the current axes and return its result.

matplotvite.step(*args, **kwargs)

Call Axes.step on the current axes and return its result.

matplotvite.streamplot(*args, **kwargs)

Call Axes.streamplot on the current axes and return its result.

matplotvite.subplot(*args, **kwargs)

subplot(nrows, ncols, index) or subplot(gs[row, col]).

matplotvite.subplot2grid(shape, loc, rowspan=1, colspan=1, fig=None, **kwargs)[source]

Create an axes spanning a cell of a regular grid.

Parameters:
  • shape (Any)

  • loc (Any)

  • rowspan (Any)

  • colspan (Any)

  • fig (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.subplot_mosaic(mosaic, empty_sentinel='.', figsize=None, dpi=None, facecolor=None, edgecolor=None, **kwargs)[source]

Create a figure from an ASCII or nested mosaic layout.

Parameters:
  • mosaic (Any)

  • empty_sentinel (Any)

  • figsize (Any)

  • dpi (Any)

  • facecolor (Any)

  • edgecolor (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.subplots(nrows=1, ncols=1, *, sharex=False, sharey=False, squeeze=True, subplot_kw=None, gridspec_kw=None, **fig_kw)[source]

Create a figure and a grid of axes, returning both.

Parameters:
  • nrows (Any)

  • ncols (Any)

  • sharex (Any)

  • sharey (Any)

  • squeeze (Any)

  • subplot_kw (Any)

  • gridspec_kw (Any)

  • fig_kw (Any)

Return type:

tuple[Figure, Any]

matplotvite.subplots_adjust(*args, **kwargs)

Call Figure.subplots_adjust on the current figure and return its result.

matplotvite.suptitle(t, x=0.5, y=0.98, fontsize=None, **kwargs)

Add a centred title above the current figure.

matplotvite.table(cellText=None, cellColours=None, **kwargs)

Call Axes.table on the current axes and return its result.

matplotvite.text(*args, **kwargs)

Call Axes.text on the current axes and return its result.

matplotvite.tick_params(*args, **kwargs)

Call Axes.tick_params on the current axes and return its result.

matplotvite.tight_layout(*args, **kwargs)

Call Figure.tight_layout on the current figure and return its result.

matplotvite.title(text, fontsize=None, **kwargs)

Set the title of the current axes.

matplotvite.twinx(ax=None)[source]

plt.twinx() shim.

Parameters:

ax (Any)

Return type:

Any

matplotvite.twiny(ax=None)[source]

plt.twiny() shim.

Parameters:

ax (Any)

Return type:

Any

matplotvite.violinplot(*args, **kwargs)

Call Axes.violinplot on the current axes and return its result.

matplotvite.vlines(*args, **kwargs)

Call Axes.vlines on the current axes and return its result.

matplotvite.xkcd(scale=1, length=100, randomness=2)[source]

Matplotlib’s sketch style has no renderer support; accept and ignore it.

The call also works as with plt.xkcd():, so return a context manager.

Parameters:
  • scale (Any)

  • length (Any)

  • randomness (Any)

Return type:

Any

matplotvite.xlabel(text, fontsize=None, **kwargs)[source]

Set the x-axis label of the current axes.

Parameters:
  • text (Any)

  • fontsize (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.xlim(*args, **kwargs)[source]

Set or query the x limits of the current axes.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.xscale(*args, **kwargs)

Call Axes.xscale on the current axes and return its result.

matplotvite.xticks(ticks=None, labels=None, **kwargs)

Set or query the x ticks and labels of the current axes.

matplotvite.ylabel(text, fontsize=None, **kwargs)[source]

Set the y-axis label of the current axes.

Parameters:
  • text (Any)

  • fontsize (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.ylim(*args, **kwargs)[source]

Set or query the y limits of the current axes.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

matplotvite.yscale(*args, **kwargs)

Call Axes.yscale on the current axes and return its result.

matplotvite.yticks(ticks=None, labels=None, **kwargs)

Set or query the y ticks and labels of the current axes.