matplotlib 3.5.1

BackRef

For a visual impression of each JoinStyle, :None:None:`view these docs online <JoinStyle>`, or run :None:None:`JoinStyle.demo`.

Lines in Matplotlib are typically defined by a 1D ~.path.Path and a finite linewidth , where the underlying 1D ~.path.Path represents the center of the stroked line.

By default, ~.backend_bases.GraphicsContextBase defines the boundaries of a stroked line to simply be every point within some radius, linewidth/2 , away from any point of the center line. However, this results in corners appearing "rounded", which may not be the desired behavior if you are drawing, for example, a polygon or pointed star.

Supported values:

.. rst-class:: value-list
    'miter'
        the "arrow-tip" style. Each boundary of the filled-in area will
        extend in a straight line parallel to the tangent vector of the
        centerline at the point it meets the corner, until they meet in a
        sharp point.
    'round'
        stokes every point within a radius of ``linewidth/2`` of the center
        lines.
    'bevel'
        the "squared-off" style. It can be thought of as a rounded corner
        where the "circular" part of the corner has been cut off.
note

Very long miter tips are cut off (to form a bevel) after a backend-dependent limit called the "miter limit", which specifies the maximum allowed ratio of miter length to line width. For example, the PDF backend uses the default value of 10 specified by the PDF standard, while the SVG backend does not even specify the miter limit, resulting in a default value of 4 per the SVG specification. Matplotlib does not currently allow the user to adjust this parameter.

A more detailed description of the effect of a miter limit can be found in the :None:None:`Mozilla Developer Docs <https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-miterlimit>`

.. plot:: 
    ('alt', "Demo of possible JoinStyle's")
    from matplotlib._enums import JoinStyle
    JoinStyle.demo()

Define how the connection between two line segments is drawn.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib

123 Elements
matplotlib.axes._axes.Axes.broken_barh
matplotlib.artist.Patch.set
matplotlib.patches.RegularPolygon.__init__
matplotlib.axes._axes.Axes.cohere
matplotlib.patches.Patch.set_joinstyle
matplotlib.artist.AsteriskPolygonCollection.set
matplotlib.artist.QuadMesh.set
matplotlib.pyplot.errorbar
matplotlib.collections.Collection.set_joinstyle
matplotlib.pyplot.angle_spectrum
matplotlib.artist.CirclePolygon.set
matplotlib.axes._axes.Axes.quiver
matplotlib.pyplot.pcolor
matplotlib.axes._axes.Axes.magnitude_spectrum
matplotlib.patches.Wedge.__init__
matplotlib.artist.BrokenBarHCollection.set
matplotlib.pyplot.fill_between
matplotlib.patches.Polygon.__init__
matplotlib.artist.StepPatch.set
matplotlib.pyplot.axvline
matplotlib.pyplot.axvspan
matplotlib.axes._axes.Axes.axhline
matplotlib.patches.PathPatch.__init__
matplotlib.artist.PathCollection.set
matplotlib.axes._axes.Axes.barbs
matplotlib.artist.PatchCollection.set
matplotlib.patches.FancyArrowPatch.__init__
matplotlib.artist.Ellipse.set
matplotlib.patches.FancyArrow.__init__
matplotlib.axes._axes.Axes.phase_spectrum
matplotlib.axes._axes.Axes.axhspan
matplotlib.artist.Shadow.set
matplotlib.pyplot.barbs
matplotlib.patches.Patch.__init__
matplotlib.artist.Rectangle.set
matplotlib.patches.Circle.__init__
matplotlib.patches.Arrow.__init__
matplotlib.artist.RegularPolygon.set
matplotlib.artist.FancyArrowPatch.set
matplotlib.axes._axes.Axes.fill_between
matplotlib.artist.PolyCollection.set
matplotlib.artist.LineCollection.set
matplotlib.lines.Line2D.__init__
matplotlib.pyplot.psd
matplotlib.pyplot.plot
matplotlib.artist.Line2D.set
matplotlib.patches.FancyBboxPatch.__init__
matplotlib.axes._axes.Axes.arrow
matplotlib.pyplot.bar
matplotlib.pyplot.axhspan
matplotlib.pyplot.csd
matplotlib.artist.CircleCollection.set
matplotlib.axes._axes.Axes.hexbin
matplotlib.axes._axes.Axes.spy
matplotlib.axes._axes.Axes.fill_betweenx
matplotlib.axes._axes.Axes.pcolor
matplotlib.patches.CirclePolygon.__init__
matplotlib.quiver.Barbs.__init__
matplotlib.artist.Wedge.set
matplotlib.pyplot.pcolormesh
matplotlib.artist.Collection.set
matplotlib.artist.TriMesh.set
matplotlib.pyplot.hexbin
matplotlib.artist.Spine.set
matplotlib.axes._axes.Axes.bar
matplotlib.patches.Ellipse.__init__
matplotlib.patches.StepPatch.__init__
matplotlib.patches.Rectangle.__init__
matplotlib.axes._axes.Axes.indicate_inset
matplotlib.patches.Shadow.__init__
matplotlib.spines.Spine.__init__
matplotlib.pyplot.plot_date
matplotlib.artist.Arrow.set
matplotlib.pyplot.spy
matplotlib.artist.Annulus.set
matplotlib.artist.Polygon.set
matplotlib.pyplot.axline
matplotlib.axes._axes.Axes.pcolormesh
matplotlib.pyplot.grid
matplotlib.patches.Arc.__init__
matplotlib.pyplot.barh
matplotlib.artist._CollectionWithSizes.set
matplotlib.sankey.Sankey.add
matplotlib.artist.PathPatch.set
matplotlib.axes._axes.Axes.plot
matplotlib.patches.Annulus.__init__
matplotlib.artist.EventCollection.set
matplotlib.pyplot.fill_betweenx
matplotlib.artist.StarPolygonCollection.set
matplotlib.artist.Cell.set
matplotlib.quiver.Quiver.__init__
matplotlib.artist.FancyBboxPatch.set
matplotlib.artist.EllipseCollection.set
matplotlib.artist.ConnectionPatch.set
matplotlib.artist._ColorbarSpine.set
matplotlib.artist.Arc.set
matplotlib.axes._axes.Axes.axline
matplotlib.artist.RegularPolyCollection.set
matplotlib.artist.Barbs.set
matplotlib.axes._axes.Axes.axvspan
matplotlib.lines.Line2D.get_solid_joinstyle
matplotlib.artist.Circle.set
matplotlib.lines.Line2D.get_dash_joinstyle
matplotlib.pyplot.cohere
matplotlib._enums.CapStyle
matplotlib.pyplot.magnitude_spectrum
matplotlib.axes._base._AxesBase.grid
matplotlib.axes._axes.Axes.psd
matplotlib.pyplot.phase_spectrum
matplotlib.axes._axes.Axes.csd
matplotlib.axes._axes.Axes.plot_date
matplotlib.pyplot.quiver
matplotlib.artist._AxLine.set
matplotlib.pyplot.broken_barh
matplotlib.axes._axes.Axes.barh
matplotlib.axes._axes.Axes.angle_spectrum
matplotlib.axes._axes.Axes.axvline
matplotlib.artist.FancyArrow.set
matplotlib.pyplot.arrow
matplotlib.pyplot.axhline
matplotlib.backend_bases.GraphicsContextBase.get_joinstyle
matplotlib.axes._axes.Axes.errorbar
matplotlib.artist.Quiver.set

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/_enums.py#27
type: <class 'enum.EnumMeta'>
Commit: