From 9fcd8cb1188dceef343e1231de46528183094332 Mon Sep 17 00:00:00 2001 From: Adrien VINCENT Date: Fri, 15 Jul 2016 16:30:13 +0200 Subject: [PATCH 1/2] Fix typo about range of data points --- examples/pylab_examples/broken_axis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pylab_examples/broken_axis.py b/examples/pylab_examples/broken_axis.py index b5e3bf174bf..b573784c7bc 100644 --- a/examples/pylab_examples/broken_axis.py +++ b/examples/pylab_examples/broken_axis.py @@ -5,7 +5,7 @@ import numpy as np -# 30 points between 0 0.2] originally made using np.random.rand(30)*.2 +# 30 points between [0, 0.2) originally made using np.random.rand(30)*.2 pts = np.array([ 0.015, 0.166, 0.133, 0.159, 0.041, 0.024, 0.195, 0.039, 0.161, 0.018, 0.143, 0.056, 0.125, 0.096, 0.094, 0.051, 0.043, 0.021, 0.138, 0.075, From b39fcaa9ec54b423979c7ef7e4431f27c000bfeb Mon Sep 17 00:00:00 2001 From: Adrien VINCENT Date: Fri, 15 Jul 2016 16:31:32 +0200 Subject: [PATCH 2/2] Fix another typo in a comment --- examples/pylab_examples/broken_axis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pylab_examples/broken_axis.py b/examples/pylab_examples/broken_axis.py index b573784c7bc..c62a7fa4f69 100644 --- a/examples/pylab_examples/broken_axis.py +++ b/examples/pylab_examples/broken_axis.py @@ -44,7 +44,7 @@ # right transform and disable clipping. d = .015 # how big to make the diagonal lines in axes coordinates -# arguments to pass plot, just so we don't keep repeating them +# arguments to pass to plot, just so we don't keep repeating them kwargs = dict(transform=ax.transAxes, color='k', clip_on=False) ax.plot((-d, +d), (-d, +d), **kwargs) # top-left diagonal ax.plot((1 - d, 1 + d), (-d, +d), **kwargs) # top-right diagonal