From 4690f0d792a495c3169661c73ae7da4957d00400 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Wed, 12 Jan 2022 19:20:34 +0100 Subject: [PATCH] Backport PR #22209: DOC: Document default join style --- lib/matplotlib/lines.py | 4 ++++ lib/matplotlib/patches.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/lib/matplotlib/lines.py b/lib/matplotlib/lines.py index 1014c497d9c5..6ae0e16f5e13 100644 --- a/lib/matplotlib/lines.py +++ b/lib/matplotlib/lines.py @@ -1293,6 +1293,8 @@ def set_dash_joinstyle(self, s): """ How to join segments of the line if it `~Line2D.is_dashed`. + The default joinstyle is :rc:`lines.dash_joinstyle`. + Parameters ---------- s : `.JoinStyle` or %(JoinStyle)s @@ -1307,6 +1309,8 @@ def set_solid_joinstyle(self, s): """ How to join segments if the line is solid (not `~Line2D.is_dashed`). + The default joinstyle is :rc:`lines.solid_joinstyle`. + Parameters ---------- s : `.JoinStyle` or %(JoinStyle)s diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index adcf2a1b1a77..3dc875e91004 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -499,6 +499,9 @@ def set_joinstyle(self, s): """ Set the `.JoinStyle`. + The default joinstyle is 'round' for `.FancyArrowPatch` and 'miter' for + all other patches. + Parameters ---------- s : `.JoinStyle` or %(JoinStyle)s