From ac819f49ecfee042cf2e1e91ac4d35b75415dc3e Mon Sep 17 00:00:00 2001 From: Dylan Evans Date: Mon, 29 Feb 2016 16:24:34 +1000 Subject: [PATCH] Fixes an error in the documentation, '-.' line style is documented as 'dash_dot' but is 'dashdot' in code. --- lib/matplotlib/collections.py | 2 +- lib/matplotlib/lines.py | 2 +- lib/matplotlib/patches.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index 3bdf84ba124..2a33ba21b37 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -510,7 +510,7 @@ def set_linestyle(self, ls): =========================== ================= ``'-'`` or ``'solid'`` solid line ``'--'`` or ``'dashed'`` dashed line - ``'-.'`` or ``'dash_dot'`` dash-dotted line + ``'-.'`` or ``'dashdot'`` dash-dotted line ``':'`` or ``'dotted'`` dotted line =========================== ================= diff --git a/lib/matplotlib/lines.py b/lib/matplotlib/lines.py index ca99d7ccf1b..32b51df5cf2 100644 --- a/lib/matplotlib/lines.py +++ b/lib/matplotlib/lines.py @@ -1011,7 +1011,7 @@ def set_linestyle(self, ls): =========================== ================= ``'-'`` or ``'solid'`` solid line ``'--'`` or ``'dashed'`` dashed line - ``'-.'`` or ``'dash_dot'`` dash-dotted line + ``'-.'`` or ``'dashdot'`` dash-dotted line ``':'`` or ``'dotted'`` dotted line ``'None'`` draw nothing ``' '`` draw nothing diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index d864ccf3277..87c2e24d1a8 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -370,7 +370,7 @@ def set_linestyle(self, ls): =========================== ================= ``'-'`` or ``'solid'`` solid line ``'--'`` or ``'dashed'`` dashed line - ``'-.'`` or ``'dash_dot'`` dash-dotted line + ``'-.'`` or ``'dashdot'`` dash-dotted line ``':'`` or ``'dotted'`` dotted line =========================== =================