Documentation Link
https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Patch.html#matplotlib.patches.Patch.set_linestyle
Problem
I looked up a method for setting plot's spine line style to a custom dash and my lazy eye caught what I highlighted in yellow:

I tried this and naturally I got an error:

Only after googling some example and reading the doc very carefully I noticed the correct way to change the line style:

Suggested improvement
I think the doc should be re-written so it's more explicit:
Alternatively a dash tuple of the following form can be provided:
(offset, (off_ink, on_ink))
Where:
offset: definition
on_ink/off_ink: definition
Documentation Link
https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Patch.html#matplotlib.patches.Patch.set_linestyle
Problem
I looked up a method for setting plot's
spineline style to a custom dash and my lazy eye caught what I highlighted in yellow:I tried this and naturally I got an error:
Only after googling some example and reading the doc very carefully I noticed the correct way to change the line style:
Suggested improvement
I think the
docshould be re-written so it's more explicit:Alternatively a dash tuple of the following form can be provided:
Where:
offset: definitionon_ink/off_ink: definition