How to draw the start and end points of lines that represent a closed curve (i.e. that end in a :None:None:`~.path.Path.CLOSEPOLY`
) is controlled by the line's JoinStyle
. For all other lines, how the start and end points are drawn is controlled by the CapStyle.
For a visual impression of each CapStyle, :None:None:`view these docs online
<CapStyle>`
or run :None:None:`CapStyle.demo`
.
Supported values:
.. rst-class:: value-list 'butt' the line is squared off at its endpoint. 'projecting' the line is squared off as in *butt*, but the filled in area extends beyond the endpoint a distance of ``linewidth/2``. 'round' like *butt*, but a semicircular cap is added to the end of the line, of radius ``linewidth/2``.
.. plot:: ('alt', "Demo of possible CapStyle's") from matplotlib._enums import CapStyle CapStyle.demo()
Define how the two endpoints (caps) of an unclosed line are drawn.
The following pages refer to to this document either explicitly or contain code examples using this.
matplotlib.axes._axes.Axes.broken_barh
matplotlib.artist.Patch.set
matplotlib.patches.RegularPolygon.__init__
matplotlib.axes._axes.Axes.cohere
matplotlib.artist.AsteriskPolygonCollection.set
matplotlib.artist.QuadMesh.set
matplotlib.pyplot.errorbar
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.collections.Collection.set_capstyle
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.lines.Line2D.get_dash_capstyle
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.lines.Line2D.get_solid_capstyle
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.backend_bases.GraphicsContextBase.get_capstyle
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.patches.Patch.set_capstyle
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.artist.Circle.set
matplotlib.pyplot.cohere
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.axes._axes.Axes.errorbar
matplotlib.artist.Quiver.set
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