diff --git a/examples/api/power_norm_demo.py b/examples/api/power_norm_demo.py index dc0b9103bc6a..76ada2370df3 100755 --- a/examples/api/power_norm_demo.py +++ b/examples/api/power_norm_demo.py @@ -5,7 +5,7 @@ import numpy as np from numpy.random import multivariate_normal -data = np.vstack([multivariate_normal([10, 10], [[2, 2], [2, 2]], size=100000), +data = np.vstack([multivariate_normal([10, 10], [[3, 2], [2, 3]], size=100000), multivariate_normal([30, 20], [[2, 3], [1, 3]], size=1000) ]) diff --git a/examples/pylab_examples/centered_ticklabels.py b/examples/pylab_examples/centered_ticklabels.py index c8489906d1d3..e745acf965bc 100644 --- a/examples/pylab_examples/centered_ticklabels.py +++ b/examples/pylab_examples/centered_ticklabels.py @@ -45,6 +45,6 @@ tick.tick2line.set_markersize(0) tick.label1.set_horizontalalignment('center') -imid = len(r)/2 +imid = len(r)//2 ax.set_xlabel(str(r.date[imid].year)) plt.show() diff --git a/examples/pylab_examples/data_helper.py b/examples/pylab_examples/data_helper.py index 291a6dc44813..27a9cef06dda 100755 --- a/examples/pylab_examples/data_helper.py +++ b/examples/pylab_examples/data_helper.py @@ -17,10 +17,10 @@ def get_two_stock_data(): file2 = cbook.get_sample_data('AAPL.dat.gz') M1 = fromstring(file1.read(), '