matplotlib API reference
400 public APIs from matplotlib (matplotlib/matplotlib) — 178 classes, 28 functions, 194 methods. Signatures extracted by static analysis of the actual source.
Repository: matplotlib/matplotlib
| Kind | Count |
|---|---|
| Classes | 178 |
| Functions | 28 |
| Methods | 194 |
API list
class
galleries.users_explain.text.annotations.MyStyleA simple box.
func
galleries.users_explain.text.text_intro.formatoddticks(x, pos)Format odd tick positions.
class
lib.matplotlib._afm.CharMetricsRepresents the character metrics of a single character.
func
lib.matplotlib._api.deprecation.empty_with_docstring()doc
class
lib.matplotlib._enums.JoinStyleDefine how the connection between two line segments is drawn.
method
lib.matplotlib._layoutgrid.LayoutGrid.reset_margins()Reset all the margins to zero.
class
lib.matplotlib._mathtext.AutoWidthCharA character as close to the given width as possible.
class
lib.matplotlib._mathtext.BakomaFontsUse the Bakoma TrueType fonts for rendering.
class
lib.matplotlib._mathtext.BoxA node with a physical location.
class
lib.matplotlib._mathtext.CharA single character.
func
lib.matplotlib._mathtext.Error(msg:str) -> ParserElementHelper class to raise parser errors.
class
lib.matplotlib._mathtext.FontMetricsMetrics of a font.
class
lib.matplotlib._mathtext.HboxA box with only width (zero height and depth).
class
lib.matplotlib._mathtext.HlistA horizontal list of boxes.
method
lib.matplotlib._mathtext.Hlist.kern() -> NoneInsert `Kern` nodes between `Char` nodes to set kerning.
class
lib.matplotlib._mathtext.HruleConvenience class to create a horizontal rule.
class
lib.matplotlib._mathtext.ListA list of nodes (either horizontal or vertical).
class
lib.matplotlib._mathtext.NodeA node in the TeX box model.
method
lib.matplotlib._mathtext.Node.render(output:Output, x:float, y:float) -> NoneRender this node.
method
lib.matplotlib._mathtext.Node.shrink() -> NoneShrinks one level smaller.
method
lib.matplotlib._mathtext.Parser.get_state() -> ParserStateGet the current `State` of the parser.
method
lib.matplotlib._mathtext.Parser.pop_state() -> NonePop a `State` off of the stack.
class
lib.matplotlib._mathtext.ParserStateParser state.
method
lib.matplotlib._mathtext.ParserState.get_current_underline_thickness() -> floatReturn the underline thickness for this state.
class
lib.matplotlib._mathtext.RuleA solid black rectangle.
class
lib.matplotlib._mathtext.StixFontsA font handling class for the STIX fonts.
class
lib.matplotlib._mathtext.UnicodeFontsAn abstract base class for handling Unicode fonts.
class
lib.matplotlib._mathtext.VboxA box with only height (zero width).
class
lib.matplotlib._mathtext.VlistA vertical list of boxes.
class
lib.matplotlib._mathtext.VruleConvenience class to create a vertical rule.
func
lib.matplotlib._mathtext.cmd(expr:str, args:ParserElement) -> ParserElementHelper to define TeX commands.
func
lib.matplotlib._mathtext.get_unicode_index(symbol:str) -> CharacterCodeTypeReturn the integer index (from the Unicode table) of *symbol*.
func
lib.matplotlib._mathtext.ship(box:Box, xy:tuple[float, float]=(0, 0)) -> OutputShip out *box* at offset *xy*, converting it to an `Output`.
func
lib.matplotlib._text_helpers.layout(string:str, font:FT2Font, *features:tuple[str] | None=None, *language:str | tuple[tuple[str, int, int], ...] | None=None) -> Iterator[LayoutItem]Render *string* with *font*.
class
lib.matplotlib._type1font.Type1FontA class representing a Type-1 font, for use by backends.
method
lib.matplotlib._type1font.Type1Font.transform(effects)Return a new font that is slanted and/or extended.
class
lib.matplotlib.animation.AnimationAbstract base class for Animations.
method
lib.matplotlib.animation.Animation.pause()Pause the animation.
method
lib.matplotlib.animation.Animation.resume()Resume the animation.
class
lib.matplotlib.animation.FFMpegBaseMixin class for FFMpeg output.
class
lib.matplotlib.animation.FFMpegFileWriterFile-based ffmpeg writer.
class
lib.matplotlib.animation.FFMpegWriterPipe-based ffmpeg writer.
class
lib.matplotlib.animation.HTMLWriterWriter for JavaScript-based HTML movies.
class
lib.matplotlib.animation.ImageMagickBaseMixin class for ImageMagick output.
class
lib.matplotlib.animation.ImageMagickFileWriterFile-based animated gif writer.
class
lib.matplotlib.animation.ImageMagickWriterPipe-based animated gif writer.
class
lib.matplotlib.animation.MovieWriterBase class for writing movies.
class
lib.matplotlib.animation.TimedAnimationAbstract `Animation` subclass for time-based animation.
class
lib.matplotlib.artist.ArtistAbstract base class for objects that render into a FigureCanvas.
method
lib.matplotlib.artist.Artist.findobj(match=None, include_self=True)Find artist objects.
method
lib.matplotlib.artist.Artist.get_clip_box()Return the clipbox.
method
lib.matplotlib.artist.Artist.get_clip_path()Return the clip path.
method
lib.matplotlib.artist.Artist.get_gid()Return the group id.
method
lib.matplotlib.artist.Artist.get_snap()Return the snap setting.
method
lib.matplotlib.artist.Artist.get_url()Return the url.
method
lib.matplotlib.artist.Artist.get_visible()Return the visibility.
method
lib.matplotlib.artist.Artist.get_zorder()Return the artist's zorder.
method
lib.matplotlib.artist.Artist.pchanged()Call all of the registered callbacks.
method
lib.matplotlib.artist.Artist.pick(mouseevent)Process a pick event.
method
lib.matplotlib.artist.Artist.pickable()Return whether the artist is pickable.
method
lib.matplotlib.artist.Artist.remove()Remove the artist from the figure if possible.
method
lib.matplotlib.artist.Artist.set_agg_filter(filter_func)Set the agg filter.
method
lib.matplotlib.artist.Artist.set_clip_box(clipbox)Set the artist's clip `.Bbox`.
method
lib.matplotlib.artist.Artist.set_clip_on(b)Set whether the artist uses clipping.
method
lib.matplotlib.artist.Artist.set_clip_path(path, transform=None)Set the artist's clip path.
method
lib.matplotlib.artist.Artist.set_gid(gid)Set the (group) id for the artist.
method
lib.matplotlib.artist.Artist.set_path_effects(path_effects)Set the path effects.
method
lib.matplotlib.artist.Artist.set_sketch_params(scale=None, length=None, randomness=None)Set the sketch parameters.
method
lib.matplotlib.artist.Artist.set_snap(snap)Set the snapping behavior.
method
lib.matplotlib.artist.Artist.set_transform(t)Set the artist transform.
method
lib.matplotlib.artist.Artist.set_url(url)Set the url for the artist.
method
lib.matplotlib.artist.Artist.set_visible(b)Set the artist's visibility.
method
lib.matplotlib.artist.Artist.set_zorder(level)Set the zorder for the artist.
class
lib.matplotlib.artist.ArtistListA sublist of Axes or Figure children based on their type.
func
lib.matplotlib.artist.allow_rasterization(draw)Decorator for Artist.draw method.
class
lib.matplotlib.axes._secondary_axes.SecondaryAxisGeneral class to hold a Secondary_X/Yaxis.
method
lib.matplotlib.axes._secondary_axes.SecondaryAxis.draw(renderer)Draw the secondary Axes.
class
lib.matplotlib.axis.AxisBase class for `.XAxis` and `.YAxis`.
method
lib.matplotlib.axis.Axis.clear()Clear the axis.
method
lib.matplotlib.axis.Axis.get_converter()Get the unit converter for axis.
method
lib.matplotlib.axis.Axis.get_label_text()Get the text of the label.
method
lib.matplotlib.axis.Axis.get_major_formatter()Get the formatter of the major ticker.
method
lib.matplotlib.axis.Axis.get_major_locator()Get the locator of the major ticker.
method
lib.matplotlib.axis.Axis.get_minor_locator()Get the locator of the minor ticker.
method
lib.matplotlib.axis.Axis.get_scale()Return this Axis' scale (as a str).
method
lib.matplotlib.axis.Axis.get_ticklabels(minor=False, which=None)Get this Axis' tick labels.
method
lib.matplotlib.axis.Axis.get_units()Return the units for axis.
method
lib.matplotlib.axis.Axis.grid(visible=None, which='major', **kwargs)Configure the grid lines.
method
lib.matplotlib.axis.Axis.minorticks_off()Remove minor ticks from the Axis.
method
lib.matplotlib.axis.Axis.set_converter(converter)Set the unit converter for axis.
method
lib.matplotlib.axis.Axis.set_data_interval(vmin, vmax, ignore=False)Set the axis data limits.
method
lib.matplotlib.axis.Axis.set_major_locator(locator)Set the locator of the major ticker.
method
lib.matplotlib.axis.Axis.set_minor_locator(locator)Set the locator of the minor ticker.
method
lib.matplotlib.axis.Axis.set_units(u)Set the units for axis.
method
lib.matplotlib.axis.Axis.set_view_interval(vmin, vmax, ignore=False)Set the axis view limits.
class
lib.matplotlib.axis.TickAbstract base class for the axis ticks, grid lines and labels.
method
lib.matplotlib.axis.Tick.set_url(url)Set the url of label1 and label2.
class
lib.matplotlib.axis.TickerA container for the objects defining tick position and format.
method
lib.matplotlib.axis.XAxis.set_ticks_position(position)Set the ticks position.
method
lib.matplotlib.axis.YAxis.set_ticks_position(position)Set the ticks position.
class
lib.matplotlib.backend_bases.CloseEventAn event triggered by a figure being closed.
class
lib.matplotlib.backend_bases.DrawEventAn event triggered by a draw operation on the canvas.
class
lib.matplotlib.backend_bases.EventA Matplotlib event.
class
lib.matplotlib.backend_bases.FigureCanvasBaseThe canvas the figure renders into.
method
lib.matplotlib.backend_bases.FigureCanvasBase.draw(*args, **kwargs)Render the `.Figure`.
method
lib.matplotlib.backend_bases.FigureCanvasBase.mpl_connect(s, func)Bind function *func* to event *s*.
method
lib.matplotlib.backend_bases.FigureCanvasBase.set_cursor(cursor)Set the current cursor.
method
lib.matplotlib.backend_bases.FigureCanvasBase.start_event_loop(timeout=0)Start a blocking event loop.
class
lib.matplotlib.backend_bases.KeyEventA key event (key press, key release).
class
lib.matplotlib.backend_bases.LocationEventAn event that has a screen location.
class
lib.matplotlib.backend_bases.NavigationToolbar2Base class for the navigation cursor, version 2.
method
lib.matplotlib.backend_bases.NavigationToolbar2.back(*args)Move back up the view lim stack.
method
lib.matplotlib.backend_bases.NavigationToolbar2.home(*args)Restore the original view.
method
lib.matplotlib.backend_bases.NavigationToolbar2.pan(*args)Toggle the pan/zoom tool.
method
lib.matplotlib.backend_bases.NavigationToolbar2.remove_rubberband()Remove the rubberband.
method
lib.matplotlib.backend_bases.NavigationToolbar2.save_figure(*args)Save the current figure.
method
lib.matplotlib.backend_bases.NavigationToolbar2.update()Reset the Axes stack.
class
lib.matplotlib.backend_bases.NonGuiExceptionRaised when trying show a figure in a non-GUI backend.
class
lib.matplotlib.backend_bases.PickEventA pick event.
class
lib.matplotlib.backend_bases.RendererBaseAn abstract base class to handle drawing/rendering operations.
method
lib.matplotlib.backend_bases.RendererBase.draw_image(gc, x, y, im, transform=None)Draw an RGBA image.
method
lib.matplotlib.backend_bases.RendererBase.draw_tex(gc, x, y, s, prop, angle, *mtext=None)Draw a TeX instance.
method
lib.matplotlib.backend_bases.RendererBase.draw_text(gc, x, y, s, prop, angle, ismath=False, mtext=None)Draw a text instance.
method
lib.matplotlib.backend_bases.RendererBase.points_to_pixels(points)Convert points to display units.
method
lib.matplotlib.backend_bases.RendererBase.start_rasterizing()Switch to the raster renderer.
class
lib.matplotlib.backend_bases.ResizeEventAn event triggered by a canvas resize.
class
lib.matplotlib.backend_bases.ToolContainerBaseBase class for all tool containers, e.g.
method
lib.matplotlib.backend_bases.ToolContainerBase.trigger_tool(name)Trigger the tool.
class
lib.matplotlib.backend_managers.ToolEventEvent for tool manipulation (add/remove).
method
lib.matplotlib.backend_managers.ToolManager.active_toggle()Currently toggled tools.
method
lib.matplotlib.backend_managers.ToolManager.canvas()Canvas managed by FigureManager.
method
lib.matplotlib.backend_managers.ToolManager.figure()Figure that holds the canvas.
method
lib.matplotlib.backend_managers.ToolManager.remove_tool(name)Remove tool named *name*.
class
lib.matplotlib.backend_managers.ToolManagerMessageEventEvent carrying messages from toolmanager.
class
lib.matplotlib.backend_managers.ToolTriggerEventEvent to inform that a tool has been triggered.
class
lib.matplotlib.backend_tools.AxisScaleBaseBase Tool to toggle between linear and logarithmic.
class
lib.matplotlib.backend_tools.ConfigureSubplotsBaseBase tool for the configuration of subplots.
class
lib.matplotlib.backend_tools.CursorsBackend-independent cursor types.
class
lib.matplotlib.backend_tools.RubberbandBaseDraw and remove a rubberband.
method
lib.matplotlib.backend_tools.RubberbandBase.draw_rubberband(*data)Draw rubberband.
method
lib.matplotlib.backend_tools.RubberbandBase.remove_rubberband()Remove rubberband.
class
lib.matplotlib.backend_tools.SaveFigureBaseBase tool for figure saving.
class
lib.matplotlib.backend_tools.ToolBackMove back up the view limits stack.
class
lib.matplotlib.backend_tools.ToolBaseBase tool class.
method
lib.matplotlib.backend_tools.ToolBase.trigger(sender, event, data=None)Called when this tool gets used.
class
lib.matplotlib.backend_tools.ToolCopyToClipboardBaseTool to copy the figure to the clipboard.
class
lib.matplotlib.backend_tools.ToolCursorPositionSend message with the current pointer position.
class
lib.matplotlib.backend_tools.ToolForwardMove forward in the view lim stack.
class
lib.matplotlib.backend_tools.ToolFullScreenTool to toggle full screen.
class
lib.matplotlib.backend_tools.ToolGridTool to toggle the major grids of the figure.
class
lib.matplotlib.backend_tools.ToolHomeRestore the original view limits.
class
lib.matplotlib.backend_tools.ToolMinorGridTool to toggle the major and minor grids of the figure.
class
lib.matplotlib.backend_tools.ToolPanPan Axes with left mouse, zoom with right.
class
lib.matplotlib.backend_tools.ToolQuitTool to call the figure manager destroy method.
class
lib.matplotlib.backend_tools.ToolQuitAllTool to call the figure manager destroy method.
class
lib.matplotlib.backend_tools.ToolSetCursorChange to the current cursor while inaxes.
class
lib.matplotlib.backend_tools.ToolToggleBaseToggleable tool.
method
lib.matplotlib.backend_tools.ToolToggleBase.disable(event=None)Disable the toggle tool.
method
lib.matplotlib.backend_tools.ToolToggleBase.enable(event=None)Enable the toggle tool.
method
lib.matplotlib.backend_tools.ToolToggleBase.toggled()State of the toggled tool.
method
lib.matplotlib.backend_tools.ToolViewsPositions.clear(figure)Reset the Axes stack.
class
lib.matplotlib.backend_tools.ToolZoomA Tool for zooming using a rectangle selector.
class
lib.matplotlib.backend_tools.ViewsPositionsBaseBase class for `ToolHome`, `ToolBack` and `ToolForward`.
class
lib.matplotlib.backend_tools.ZoomPanBaseBase class for `ToolZoom` and `ToolPan`.
class
lib.matplotlib.backends._backend_gtk.TimerGTKSubclass of `.TimerBase` using GTK timer events.
class
lib.matplotlib.backends._backend_pdf_ps.GlyphMapA two-way glyph mapping.
method
lib.matplotlib.backends._backend_pdf_ps.GlyphMap.add(charcode:str, glyph_index:GlyphIndexType, subset:int, subset_charcode:CharacterCodeType) -> NoneAdd a mapping to this instance.
method
lib.matplotlib.backends._backend_pdf_ps.GlyphMap.get(charcodes:str, glyph_index:GlyphIndexType) -> tuple[int, CharacterCodeType] | NoneGet the forward mapping from a (character string, glyph index)-pair.
class
lib.matplotlib.backends._backend_pdf_ps.SubsetResultsThe results of a subsetting operation on a font.
func
lib.matplotlib.backends._backend_pdf_ps.get_glyphs_subset(fontfile:FontPath, glyphs:set[GlyphIndexType]) -> AbstractContextManager[SubsetResults]Subset a TTF font.
func
lib.matplotlib.backends._backend_tk.showtip(event)Display text in tooltip window.
class
lib.matplotlib.backends.backend_macosx.TimerMacSubclass of `.TimerBase` using CFRunLoop timer events.
class
lib.matplotlib.backends.backend_pdf.NamePDF name object.
class
lib.matplotlib.backends.backend_pdf.OpPDF operators (not an exhaustive list).
class
lib.matplotlib.backends.backend_pdf.PdfFilePDF file object.
method
lib.matplotlib.backends.backend_pdf.PdfFile.writeTrailer()Write out the PDF trailer.
method
lib.matplotlib.backends.backend_pdf.PdfFile.writeXref()Write out the xref table.
class
lib.matplotlib.backends.backend_pdf.PdfPagesA multi-page PDF file.
class
lib.matplotlib.backends.backend_pdf.ReferencePDF reference object.
class
lib.matplotlib.backends.backend_pdf.StreamPDF stream object.
method
lib.matplotlib.backends.backend_pdf.Stream.end()Finalize stream.
method
lib.matplotlib.backends.backend_pdf.Stream.write(data)Write some data on the stream.
func
lib.matplotlib.backends.backend_pdf.pdfRepr(obj)Map Python objects to PDF syntax.
class
lib.matplotlib.backends.backend_qt.TimerQTSubclass of `.TimerBase` using QTimer events.
class
lib.matplotlib.backends.backend_svg.XMLWriterAn XML writer class.
class
lib.matplotlib.backends.backend_template.FigureCanvasTemplateThe canvas the figure renders into.
method
lib.matplotlib.backends.backend_template.FigureCanvasTemplate.print_foo(filename, **kwargs)Write out format foo.
class
lib.matplotlib.backends.backend_template.RendererTemplateThe renderer handles drawing/rendering operations.
class
lib.matplotlib.backends.backend_wx.TimerWxSubclass of `.TimerBase` using wx.Timer events.
class
lib.matplotlib.backends.qt_editor._formlayout.ColorButtonColor choosing push button
class
lib.matplotlib.backends.qt_editor._formlayout.ColorLayoutColor-specialized QLineEdit layout
class
lib.matplotlib.backends.qt_editor._formlayout.FontLayoutFont selection
class
lib.matplotlib.backends.qt_editor._formlayout.FormDialogForm Dialog
method
lib.matplotlib.backends.qt_editor._formlayout.FormDialog.get()Return form result
func
lib.matplotlib.backends.qt_editor._formlayout.font_is_installed(font)Check if font is installed
func
lib.matplotlib.backends.qt_editor.figureoptions.apply_callback(data)A callback to apply changes.
class
lib.matplotlib.backends.registry.BackendRegistryRegistry of backends available within Matplotlib.
class
lib.matplotlib.bezier.BezierSegmentA d-dimensional Bézier segment.
method
lib.matplotlib.bezier.BezierSegment.control_points()The control points of the curve.
method
lib.matplotlib.bezier.BezierSegment.degree()Degree of the polynomial.
method
lib.matplotlib.bezier.BezierSegment.dimension()The dimension of the curve.
class
lib.matplotlib.category.StrCategoryFormatterString representation of the data at every tick.
class
lib.matplotlib.category.StrCategoryLocatorTick at every integer mapping of the string data.
class
lib.matplotlib.cbook.GrouperA disjoint-set data structure.
method
lib.matplotlib.cbook.Grouper.join(a, *args)Join given arguments into the same set.
class
lib.matplotlib.cbook.GrouperViewImmutable view over a `.Grouper`.
func
lib.matplotlib.cbook.get_sample_data(fname, asfileobj=True)Return a sample data file.
func
lib.matplotlib.cbook.safe_first_element(obj)Return the first element in *obj*.
func
lib.matplotlib.cbook.sanitize_sequence(data)Convert dictview objects to list.
class
lib.matplotlib.cbook.silent_listA list with a short ``repr()``.
func
lib.matplotlib.cbook.strip_math(s)Remove latex formatting from mathtext.
method
lib.matplotlib.cm.ColormapRegistry.register(cmap, *name=None, *force=False)Register a new colormap.
method
lib.matplotlib.cm.ColormapRegistry.unregister(name)Remove a colormap from the registry.
class
lib.matplotlib.collections.CircleCollectionA collection of circles, drawn using splines.
class
lib.matplotlib.collections.CollectionBase class for Collections.
method
lib.matplotlib.collections.Collection.get_fill()Return whether face is colored.
method
lib.matplotlib.collections.Collection.get_hatch_linewidth()Return the hatch linewidth.
method
lib.matplotlib.collections.Collection.set_hatch_linewidth(lw)Set the hatch linewidth.
class
lib.matplotlib.collections.EllipseCollectionA collection of ellipses, drawn using splines.
class
lib.matplotlib.collections.PatchCollectionA generic collection of patches.
class
lib.matplotlib.collections.PathCollectionA collection of `~.path.Path`\s, as created by e.g.
class
lib.matplotlib.collections.QuadMeshClass for the efficient drawing of a quadrilateral mesh.
class
lib.matplotlib.collections.RegularPolyCollectionA collection of n-sided regular polygons.
class
lib.matplotlib.colorbar.ColorbarDraw a colorbar in an existing Axes.
method
lib.matplotlib.colorbar.Colorbar.add_lines(*args, **kwargs)Draw lines on the colorbar.
method
lib.matplotlib.colorbar.Colorbar.minorticks_on()Turn on colorbar minor ticks.
method
lib.matplotlib.colorbar.Colorbar.remove()Remove this colorbar from the figure.
method
lib.matplotlib.colorbar.Colorbar.set_ticks(ticks, *labels=None, *minor=False, **kwargs)Set tick locations.
method
lib.matplotlib.colorbar.Colorbar.update_ticks()Set up the ticks and ticklabels.
class
lib.matplotlib.colorizer.ColorizerData to color pipeline.
class
lib.matplotlib.colors.BivarColormapBase class for all bivariate to RGBA mappings.
method
lib.matplotlib.colors.BivarColormap.copy()Return a copy of the colormap.
method
lib.matplotlib.colors.BivarColormap.get_bad()Get the color for masked values.
method
lib.matplotlib.colors.BivarColormap.lut()For external access to the lut, i.e.
class
lib.matplotlib.colors.BoundaryNormGenerate a colormap index based on discrete intervals.
class
lib.matplotlib.colors.ColorConverterA class only kept for backwards compatibility.
class
lib.matplotlib.colors.ColormapBaseclass for all scalar to RGBA mappings.
method
lib.matplotlib.colors.Colormap.copy()Return a copy of the colormap.
method
lib.matplotlib.colors.Colormap.get_bad()Get the color for masked values.
method
lib.matplotlib.colors.Colormap.set_bad(color='k', alpha=None)Set the color for masked values.
class
lib.matplotlib.colors.ListedColormapColormap object generated from a list of colors.
class
lib.matplotlib.colors.MultiNormA class which contains multiple scalar norms.
class
lib.matplotlib.colors.NormAbstract base class for normalizations.
method
lib.matplotlib.colors.Norm.n_components()The number of normalized components.
func
lib.matplotlib.colors.hsv_to_rgb(hsv)Convert HSV values to RGB.
func
lib.matplotlib.colors.to_hex(c, keep_alpha=False)Convert *c* to a hex color.
func
lib.matplotlib.colors.to_rgba(c, alpha=None)Convert *c* to an RGBA color.
class
lib.matplotlib.container.BarContainerContainer for the artists of bar plots (e.g.
class
lib.matplotlib.container.ContainerBase class for containers.
class
lib.matplotlib.container.ErrorbarContainerContainer for the artists of error bars (e.g.
class
lib.matplotlib.container.PieContainerContainer for the artists of pie charts (e.g.
class
lib.matplotlib.contour.ContourLabelerMixin to provide labelling capability to `.ContourSet`.
method
lib.matplotlib.contour.ContourLabeler.get_text(lev, fmt)Get the text of the label.
class
lib.matplotlib.contour.ContourSetStore a set of contour lines or filled regions.
class
lib.matplotlib.contour.QuadContourSetCreate and store a set of contour lines or filled regions.
class
lib.matplotlib.dates.DateLocatorDetermines the tick locations when plotting dates.
method
lib.matplotlib.dates.DateLocator.set_tzinfo(tz)Set timezone info.
class
lib.matplotlib.dates.DayLocatorMake ticks on occurrences of each day of the month.
class
lib.matplotlib.dates.HourLocatorMake ticks on occurrences of each hour.
class
lib.matplotlib.dates.MinuteLocatorMake ticks on occurrences of each minute.
class
lib.matplotlib.dates.MonthLocatorMake ticks on occurrences of each month, e.g., 1, 3, 12.
class
lib.matplotlib.dates.SecondLocatorMake ticks on occurrences of each second.
class
lib.matplotlib.dates.WeekdayLocatorMake ticks on occurrences of each weekday.
func
lib.matplotlib.dates.get_epoch()Get the epoch used by `.dates`.
class
lib.matplotlib.dviread.DviFontEncapsulation of a font that a DVI file can refer to.
method
lib.matplotlib.dviread.DviFont.fname()A fake filename
class
lib.matplotlib.dviread.PsfontsMapA psfonts.map formatted file, mapping TeX fonts to PS fonts.
class
lib.matplotlib.dviread.TexMetricsMetrics of a glyph, with TeX semantics.
class
lib.matplotlib.dviread.TextA glyph in the dvi file.
class
lib.matplotlib.dviread.TfmA TeX Font Metric file.
class
lib.matplotlib.figure.FigureThe top level container for all the plot elements.
method
lib.matplotlib.figure.Figure.axes()List of Axes in the Figure.
method
lib.matplotlib.figure.Figure.draw_artist(a)Draw `.Artist` *a* only.
method
lib.matplotlib.figure.Figure.draw_without_rendering()Draw the figure with no output.
method
lib.matplotlib.figure.Figure.get_figheight()Return the figure height in inches.
method
lib.matplotlib.figure.Figure.get_figwidth()Return the figure width in inches.
method
lib.matplotlib.figure.Figure.set_size_inches(w, h=None, forward=True)Set the figure size in inches.
class
lib.matplotlib.figure.SubFigureLogical figure that can be placed inside a figure.
method
lib.matplotlib.figure.SubFigure.axes()List of Axes in the SubFigure.
class
lib.matplotlib.font_manager.FontEntryA class for storing Font properties.
method
lib.matplotlib.font_manager.FontManager.get_default_size()Return the default font size.
method
lib.matplotlib.font_manager.FontManager.set_default_weight(weight)Set the default font weight.
class
lib.matplotlib.font_manager.FontPathA class to describe a path to a font with a face index.
method
lib.matplotlib.font_manager.FontPath.face_index()The face index in a font.
method
lib.matplotlib.font_manager.FontPath.path()The path to a font.
class
lib.matplotlib.font_manager.FontPropertiesA class for storing and manipulating font properties.
method
lib.matplotlib.font_manager.FontProperties.copy()Return a copy of self.
method
lib.matplotlib.font_manager.FontProperties.get_size()Return the font size.
method
lib.matplotlib.font_manager.FontProperties.get_style()Return the font style.
method
lib.matplotlib.font_manager.FontProperties.get_variant()Return the font variant.
method
lib.matplotlib.font_manager.FontProperties.get_weight()Get the font weight.
method
lib.matplotlib.font_manager.FontProperties.set_family(family)Change the font family.
method
lib.matplotlib.font_manager.FontProperties.set_size(size)Set the font size.
method
lib.matplotlib.font_manager.FontProperties.set_stretch(stretch)Set the font stretch or width.
method
lib.matplotlib.font_manager.FontProperties.set_style(style)Set the font style.
method
lib.matplotlib.font_manager.FontProperties.set_variant(variant)Set the font variant.
method
lib.matplotlib.font_manager.FontProperties.set_weight(weight)Set the font weight.
func
lib.matplotlib.get_backend(*auto_select=True)Return the name of the current backend.
func
lib.matplotlib.get_data_path()Return the path to Matplotlib data.
class
lib.matplotlib.gridspec.GridSpecA grid layout to place subplots within a figure.
class
lib.matplotlib.gridspec.SubplotSpecThe location of a subplot in a `GridSpec`.
class
lib.matplotlib.hatch.HatchPatternBaseThe base class for a hatch pattern.
class
lib.matplotlib.image.AxesImageAn image with pixels on a regular grid, attached to an Axes.
method
lib.matplotlib.image.AxesImage.set_extent(extent, **kwargs)Set the image extent.
class
lib.matplotlib.image.BboxImageThe Image class whose size is determined by the given bbox.
class
lib.matplotlib.image.FigureImageAn image attached to a figure.
method
lib.matplotlib.image.FigureImage.set_data(A)Set the image array.
class
lib.matplotlib.image.NonUniformImageAn image with pixels on a rectilinear grid.
class
lib.matplotlib.inset.InsetIndicatorAn artist to highlight an area of interest.
method
lib.matplotlib.inset.InsetIndicator.rectangle()`.Rectangle`: the indicator frame.
class
lib.matplotlib.layout_engine.LayoutEngineBase class for Matplotlib layout engines.
class
lib.matplotlib.layout_engine.TightLayoutEngineImplements the ``tight_layout`` geometry management.
method
lib.matplotlib.layout_engine.TightLayoutEngine.execute(fig)Execute tight_layout.
class
lib.matplotlib.legend.LegendPlace a legend on the figure/axes.
method
lib.matplotlib.legend.Legend.set_loc(loc=None)Set the location of the legend.
method
lib.matplotlib.legend.Legend.set_ncols(ncols)Set the number of columns.
method
lib.matplotlib.legend.Legend.set_title(title, prop=None)Set legend title and title style.
class
lib.matplotlib.legend_handler.HandlerBaseA base class for default legend handlers.
class
lib.matplotlib.legend_handler.HandlerCircleCollectionHandler for `.CircleCollection`\s.
class
lib.matplotlib.legend_handler.HandlerErrorbarHandler for Errorbars.
class
lib.matplotlib.legend_handler.HandlerLine2DHandler for `.Line2D` instances.
class
lib.matplotlib.legend_handler.HandlerLineCollectionHandler for `.LineCollection` instances.
class
lib.matplotlib.legend_handler.HandlerPatchHandler for `.Patch` instances.
class
lib.matplotlib.legend_handler.HandlerRegularPolyCollectionHandler for `.RegularPolyCollection`\s.
class
lib.matplotlib.legend_handler.HandlerStemHandler for plots produced by `~.Axes.stem`.
class
lib.matplotlib.legend_handler.HandlerStepPatchHandler for `~.matplotlib.patches.StepPatch` instances.
class
lib.matplotlib.legend_handler.HandlerTupleHandler for Tuple.
method
lib.matplotlib.lines.Line2D.get_bbox()Get the bounding box of this line.
method
lib.matplotlib.lines.Line2D.get_color()Return the line color.
method
lib.matplotlib.lines.Line2D.get_drawstyle()Return the drawstyle.
method
lib.matplotlib.lines.Line2D.get_fillstyle()Return the marker fill style.
method
lib.matplotlib.lines.Line2D.get_gapcolor()Return the line gapcolor.
method
lib.matplotlib.lines.Line2D.get_linestyle()Return the linestyle.
method
lib.matplotlib.lines.Line2D.get_linewidth()Return the linewidth in points.
method
lib.matplotlib.lines.Line2D.get_marker()Return the line marker.
method
lib.matplotlib.lines.Line2D.get_markeredgecolor()Return the marker edge color.
method
lib.matplotlib.lines.Line2D.get_markerfacecolor()Return the marker face color.
method
lib.matplotlib.lines.Line2D.get_markersize()Return the marker size in points.
method
lib.matplotlib.lines.Line2D.get_xdata(orig=True)Return the xdata.
method
lib.matplotlib.lines.Line2D.get_xydata()Return the *xy* data as a (N, 2) array.
method
lib.matplotlib.lines.Line2D.get_ydata(orig=True)Return the ydata.
method
lib.matplotlib.lines.Line2D.set_color(color)Set the color of the line.
method
lib.matplotlib.lines.Line2D.set_dashes(seq)Set the dash sequence.
method
lib.matplotlib.lines.Line2D.set_data(*args)Set the x and y data.
method
lib.matplotlib.lines.Line2D.set_drawstyle(drawstyle)Set the drawstyle of the plot.
method
lib.matplotlib.lines.Line2D.set_fillstyle(fs)Set the marker fill style.
method
lib.matplotlib.lines.Line2D.set_linestyle(ls)Set the linestyle of the line.
method
lib.matplotlib.lines.Line2D.set_linewidth(w)Set the line width in points.
method
lib.matplotlib.lines.Line2D.set_marker(marker)Set the line marker.
method
lib.matplotlib.lines.Line2D.set_markeredgecolor(ec)Set the marker edge color.
method
lib.matplotlib.lines.Line2D.set_markerfacecolor(fc)Set the marker face color.
method
lib.matplotlib.lines.Line2D.set_markersize(sz)Set the marker size in points.
method
lib.matplotlib.lines.Line2D.set_xdata(x)Set the data array for x.
method
lib.matplotlib.lines.Line2D.set_ydata(y)Set the data array for y.
class
lib.matplotlib.markers.MarkerStyleA class representing marker types.
func
lib.matplotlib.matplotlib_fname()Get the location of the config file.
func
lib.matplotlib.mlab.detrend(x, key=None, axis=None)Return *x* with its trend removed.
func
lib.matplotlib.mlab.detrend_mean(x, axis=None)Return *x* minus the mean(*x*).
func
lib.matplotlib.mlab.detrend_none(x, axis=None)Return *x*: no detrending.
func
lib.matplotlib.mlab.window_none(x)No window function; simply return *x*.
class
lib.matplotlib.offsetbox.AnchoredOffsetboxAn OffsetBox placed according to location *loc*.
method
lib.matplotlib.offsetbox.AnchoredOffsetbox.get_child()Return the child.
method
lib.matplotlib.offsetbox.AnchoredOffsetbox.get_children()Return the list of children.
method
lib.matplotlib.offsetbox.AnchoredOffsetbox.set_child(child)Set the child to be anchored.
class
lib.matplotlib.offsetbox.AnchoredTextAnchoredOffsetbox with Text.
class
lib.matplotlib.offsetbox.AuxTransformBoxAn OffsetBox with an auxiliary transform.
method
lib.matplotlib.offsetbox.AuxTransformBox.get_offset()Return offset of the container.
method
lib.matplotlib.offsetbox.AuxTransformBox.set_offset(xy)Set the offset of the container.
method
lib.matplotlib.offsetbox.AuxTransformBox.set_transform(t)set_transform is ignored.
class
lib.matplotlib.offsetbox.DrawingAreaThe DrawingArea can contain any Artist as a child.
method
lib.matplotlib.offsetbox.DrawingArea.get_offset()Return offset of the container.
method
lib.matplotlib.offsetbox.DrawingArea.set_offset(xy)Set the offset of the container.
method
lib.matplotlib.offsetbox.DrawingArea.set_transform(t)set_transform is ignored.
class
lib.matplotlib.offsetbox.OffsetBoxA simple container artist.
method
lib.matplotlib.offsetbox.OffsetBox.set_height(height)Set the height of the box.
method
lib.matplotlib.offsetbox.OffsetBox.set_offset(xy)Set the offset.
method
lib.matplotlib.offsetbox.OffsetBox.set_width(width)Set the width of the box.
class
lib.matplotlib.offsetbox.OffsetImageContainer artist for images.
method
lib.matplotlib.offsetbox.OffsetImage.get_offset()Return offset of the container.
class
lib.matplotlib.offsetbox.PaddedBoxA container to add a padding around an `.Artist`.
method
lib.matplotlib.offsetbox.TextArea.get_multilinebaseline()Get multilinebaseline.
method
lib.matplotlib.offsetbox.TextArea.get_offset()Return offset of the container.
method
lib.matplotlib.offsetbox.TextArea.set_multilinebaseline(t)Set multilinebaseline.
method
lib.matplotlib.offsetbox.TextArea.set_offset(xy)Set the offset of the container.
method
lib.matplotlib.offsetbox.TextArea.set_text(s)Set the text of this area as a string.
method
lib.matplotlib.offsetbox.TextArea.set_transform(t)set_transform is ignored.
class
lib.matplotlib.patches.AnnulusAn elliptical annulus.
method
lib.matplotlib.patches.Annulus.get_angle()Return the angle of the annulus.
method
lib.matplotlib.patches.Annulus.get_center()Return the center of the annulus.
method
lib.matplotlib.patches.Annulus.set_angle(angle)Set the tilt angle of the annulus.
method
lib.matplotlib.patches.Annulus.set_center(xy)Set the center of the annulus.
class
lib.matplotlib.patches.ArcAn elliptical arc, i.e.
method
lib.matplotlib.patches.Arc.draw(renderer)Draw the arc to the given *renderer*.
class
lib.matplotlib.patches.ArrowAn arrow patch.
class
lib.matplotlib.patches.ArrowStyle.BarABAn arrow with vertical bars ``|`` at both ends.
class
lib.matplotlib.patches.ArrowStyle.BracketAAn arrow with an outward square bracket at its start.
class
lib.matplotlib.patches.ArrowStyle.BracketABAn arrow with outward square brackets at both ends.
class
lib.matplotlib.patches.ArrowStyle.BracketBAn arrow with an outward square bracket at its end.
class
lib.matplotlib.patches.ArrowStyle.CurveA simple curve without any arrow head.
class
lib.matplotlib.patches.ArrowStyle.CurveAAn arrow with a head at its start point.
About this data
These signatures were extracted from the public source of matplotlib/matplotlib
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.