From 8a98b6ca2e449baa7b55a9024d1aa345b01e79c4 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Thu, 29 Feb 2024 15:14:32 +0100 Subject: [PATCH] DOC: use ... for continuation prompt in docstrings Otherwise this is imporperly parsed and interpreted as the output that should have been produced by the preceding line. --- lib/matplotlib/axis.py | 2 +- lib/matplotlib/colors.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index c0cd2617e878..dbd65aba4a17 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -1001,7 +1001,7 @@ def get_tick_params(self, which='major'): :: >>> ax.yaxis.set_tick_params(labelsize=30, labelcolor='red', - direction='out', which='major') + ... direction='out', which='major') >>> ax.yaxis.get_tick_params(which='major') {'direction': 'out', 'left': True, diff --git a/lib/matplotlib/colors.py b/lib/matplotlib/colors.py index 70e275fdaeca..9a493c928fdb 100644 --- a/lib/matplotlib/colors.py +++ b/lib/matplotlib/colors.py @@ -1471,7 +1471,7 @@ def __init__(self, vcenter, vmin=None, vmax=None): >>> import matplotlib.colors as mcolors >>> offset = mcolors.TwoSlopeNorm(vmin=-4000., - vcenter=0., vmax=10000) + ... vcenter=0., vmax=10000) >>> data = [-4000., -2000., 0., 2500., 5000., 7500., 10000.] >>> offset(data) array([0., 0.25, 0.5, 0.625, 0.75, 0.875, 1.0])