Ctrl+K
Logo image Logo image
  • Plot types
  • Examples
  • Tutorials
  • Reference
  • User guide
  • Develop
  • Release notes
  • Plot types
  • Examples
  • Tutorials
  • Reference
  • User guide
  • Develop
  • Release notes

Section Navigation

  • Lines, bars and markers
    • Bar color demo
    • Bar Label Demo
    • Stacked bar chart
    • Grouped bar chart with labels
    • Horizontal bar chart
    • Broken Barh
    • CapStyle
    • Plotting categorical variables
    • Plotting the coherence of two signals
    • CSD Demo
    • Curve with error band
    • Errorbar limit selection
    • Errorbar subsampling
    • EventCollection Demo
    • Eventplot Demo
    • Filled polygon
    • Fill Between and Alpha
    • Filling the area between lines
    • Fill Betweenx Demo
    • Hatch-filled histograms
    • Bar chart with gradients
    • Hat graph
    • Discrete distribution as horizontal bar chart
    • JoinStyle
    • Customizing dashed line styles
    • Lines with a ticked patheffect
    • Linestyles
    • Marker reference
    • Markevery Demo
    • Plotting masked and NaN values
    • Multicolored lines
    • Mapping marker properties to multivariate data
    • Psd Demo
    • Scatter plots with custom symbols
    • Scatter Demo2
    • Scatter plot with histograms
    • Scatter Masked
    • Marker examples
    • Scatter plots with a legend
    • Simple Plot
    • Using span_where
    • Spectrum Representations
    • Stackplots and streamgraphs
    • Stairs Demo
    • Stem Plot
    • Step Demo
    • Creating a timeline with lines, dates, and text
    • hlines and vlines
    • Cross- and Auto-Correlation Demo
  • Images, contours and fields
  • Subplots, axes and figures
  • Statistics
  • Pie and polar charts
  • Text, labels and annotations
  • pyplot
  • Color
  • Shapes and collections
  • Style sheets
  • axes_grid1
  • axisartist
  • Showcase
  • Animation
  • Event handling
  • Miscellaneous
  • 3D plotting
  • Scales
  • Specialty Plots
  • Spines
  • Ticks
  • Units
  • Embedding Matplotlib in graphical user interfaces
  • Userdemo
  • Widgets

Note

Click here to download the full example code

JoinStyle#

The matplotlib._enums.JoinStyle controls how Matplotlib draws the corners where two different line segments meet. For more details, see the JoinStyle docs.

Join style
import matplotlib.pyplot as plt
from matplotlib._enums import JoinStyle

JoinStyle.demo()
plt.show()

Download Python source code: joinstyle.py

Download Jupyter notebook: joinstyle.ipynb

Gallery generated by Sphinx-Gallery

© Copyright 2002–2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012–2022 The Matplotlib development team.

Created using Sphinx 5.2.3.