Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2cb5403

Browse files
committed
Revert "pep8 fix E201"
This reverts commit 3ef582b. Conflicts: examples/shapes_and_collections/artist_reference.py
1 parent cb0467d commit 2cb5403

File tree

5 files changed

+41
-41
lines changed

5 files changed

+41
-41
lines changed

examples/pylab_examples/table_demo.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
import matplotlib.pyplot as plt
66

77

8-
data = [[66386, 174296, 75131, 577908, 32015],
9-
[58230, 381139, 78045, 99308, 160454],
10-
[89135, 80552, 152558, 497981, 603535],
11-
[78415, 81858, 150656, 193263, 69638],
12-
[139361, 331509, 343164, 781380, 52269]]
8+
data = [[ 66386, 174296, 75131, 577908, 32015],
9+
[ 58230, 381139, 78045, 99308, 160454],
10+
[ 89135, 80552, 152558, 497981, 603535],
11+
[ 78415, 81858, 150656, 193263, 69638],
12+
[ 139361, 331509, 343164, 781380, 52269]]
1313

1414
columns = ('Freeze', 'Wind', 'Flood', 'Quake', 'Hail')
1515
rows = ['%d year' % x for x in (100, 50, 20, 10, 5)]

examples/pylab_examples/tricontour_demo.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
[-0.052, 1.022], [-0.052, 1.017], [-0.069, 1.010], [-0.064, 1.005],
5959
[-0.048, 1.005], [-0.031, 1.005], [-0.031, 0.996], [-0.040, 0.987],
6060
[-0.045, 0.980], [-0.052, 0.975], [-0.040, 0.973], [-0.026, 0.968],
61-
[-0.020, 0.954], [-0.006, 0.947], [0.003, 0.935], [0.006, 0.926],
62-
[0.005, 0.921], [0.022, 0.923], [0.033, 0.912], [0.029, 0.905],
63-
[0.017, 0.900], [0.012, 0.895], [0.027, 0.893], [0.019, 0.886],
64-
[0.001, 0.883], [-0.012, 0.884], [-0.029, 0.883], [-0.038, 0.879],
61+
[-0.020, 0.954], [-0.006, 0.947], [ 0.003, 0.935], [ 0.006, 0.926],
62+
[ 0.005, 0.921], [ 0.022, 0.923], [ 0.033, 0.912], [ 0.029, 0.905],
63+
[ 0.017, 0.900], [ 0.012, 0.895], [ 0.027, 0.893], [ 0.019, 0.886],
64+
[ 0.001, 0.883], [-0.012, 0.884], [-0.029, 0.883], [-0.038, 0.879],
6565
[-0.057, 0.881], [-0.062, 0.876], [-0.078, 0.876], [-0.087, 0.872],
6666
[-0.030, 0.907], [-0.007, 0.905], [-0.057, 0.916], [-0.025, 0.933],
6767
[-0.077, 0.990], [-0.059, 0.993]])
@@ -72,11 +72,11 @@
7272
z = np.exp(-0.01*((x - x0)*(x - x0) + (y - y0)*(y - y0)))
7373

7474
triangles = np.asarray([
75-
[67, 66, 1], [65, 2, 66], [1, 66, 2], [64, 2, 65], [63, 3, 64],
76-
[60, 59, 57], [2, 64, 3], [3, 63, 4], [0, 67, 1], [62, 4, 63],
77-
[57, 59, 56], [59, 58, 56], [61, 60, 69], [57, 69, 60], [4, 62, 68],
78-
[6, 5, 9], [61, 68, 62], [69, 68, 61], [9, 5, 70], [6, 8, 7],
79-
[4, 70, 5], [8, 6, 9], [56, 69, 57], [69, 56, 52], [70, 10, 9],
75+
[67, 66, 1], [65, 2, 66], [ 1, 66, 2], [64, 2, 65], [63, 3, 64],
76+
[60, 59, 57], [ 2, 64, 3], [ 3, 63, 4], [ 0, 67, 1], [62, 4, 63],
77+
[57, 59, 56], [59, 58, 56], [61, 60, 69], [57, 69, 60], [ 4, 62, 68],
78+
[ 6, 5, 9], [61, 68, 62], [69, 68, 61], [ 9, 5, 70], [ 6, 8, 7],
79+
[ 4, 70, 5], [ 8, 6, 9], [56, 69, 57], [69, 56, 52], [70, 10, 9],
8080
[54, 53, 55], [56, 55, 53], [68, 70, 4], [52, 56, 53], [11, 10, 12],
8181
[69, 71, 68], [68, 13, 70], [10, 70, 13], [51, 50, 52], [13, 68, 71],
8282
[52, 71, 69], [12, 10, 13], [71, 52, 50], [71, 14, 13], [50, 49, 71],

examples/pylab_examples/tripcolor_demo.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,22 @@
6565
[-0.052, 1.022], [-0.052, 1.017], [-0.069, 1.010], [-0.064, 1.005],
6666
[-0.048, 1.005], [-0.031, 1.005], [-0.031, 0.996], [-0.040, 0.987],
6767
[-0.045, 0.980], [-0.052, 0.975], [-0.040, 0.973], [-0.026, 0.968],
68-
[-0.020, 0.954], [-0.006, 0.947], [0.003, 0.935], [0.006, 0.926],
69-
[0.005, 0.921], [0.022, 0.923], [0.033, 0.912], [0.029, 0.905],
70-
[0.017, 0.900], [0.012, 0.895], [0.027, 0.893], [0.019, 0.886],
71-
[0.001, 0.883], [-0.012, 0.884], [-0.029, 0.883], [-0.038, 0.879],
68+
[-0.020, 0.954], [-0.006, 0.947], [ 0.003, 0.935], [ 0.006, 0.926],
69+
[ 0.005, 0.921], [ 0.022, 0.923], [ 0.033, 0.912], [ 0.029, 0.905],
70+
[ 0.017, 0.900], [ 0.012, 0.895], [ 0.027, 0.893], [ 0.019, 0.886],
71+
[ 0.001, 0.883], [-0.012, 0.884], [-0.029, 0.883], [-0.038, 0.879],
7272
[-0.057, 0.881], [-0.062, 0.876], [-0.078, 0.876], [-0.087, 0.872],
7373
[-0.030, 0.907], [-0.007, 0.905], [-0.057, 0.916], [-0.025, 0.933],
7474
[-0.077, 0.990], [-0.059, 0.993]])
7575
x = xy[:, 0]*180/3.14159
7676
y = xy[:, 1]*180/3.14159
7777

7878
triangles = np.asarray([
79-
[67, 66, 1], [65, 2, 66], [1, 66, 2], [64, 2, 65], [63, 3, 64],
80-
[60, 59, 57], [2, 64, 3], [3, 63, 4], [0, 67, 1], [62, 4, 63],
81-
[57, 59, 56], [59, 58, 56], [61, 60, 69], [57, 69, 60], [4, 62, 68],
82-
[6, 5, 9], [61, 68, 62], [69, 68, 61], [9, 5, 70], [6, 8, 7],
83-
[4, 70, 5], [8, 6, 9], [56, 69, 57], [69, 56, 52], [70, 10, 9],
79+
[67, 66, 1], [65, 2, 66], [ 1, 66, 2], [64, 2, 65], [63, 3, 64],
80+
[60, 59, 57], [ 2, 64, 3], [ 3, 63, 4], [ 0, 67, 1], [62, 4, 63],
81+
[57, 59, 56], [59, 58, 56], [61, 60, 69], [57, 69, 60], [ 4, 62, 68],
82+
[ 6, 5, 9], [61, 68, 62], [69, 68, 61], [ 9, 5, 70], [ 6, 8, 7],
83+
[ 4, 70, 5], [ 8, 6, 9], [56, 69, 57], [69, 56, 52], [70, 10, 9],
8484
[54, 53, 55], [56, 55, 53], [68, 70, 4], [52, 56, 53], [11, 10, 12],
8585
[69, 71, 68], [68, 13, 70], [10, 70, 13], [51, 50, 52], [13, 68, 71],
8686
[52, 71, 69], [12, 10, 13], [71, 52, 50], [71, 14, 13], [50, 49, 71],

examples/pylab_examples/triplot_demo.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@
5656
[-0.052, 1.022], [-0.052, 1.017], [-0.069, 1.010], [-0.064, 1.005],
5757
[-0.048, 1.005], [-0.031, 1.005], [-0.031, 0.996], [-0.040, 0.987],
5858
[-0.045, 0.980], [-0.052, 0.975], [-0.040, 0.973], [-0.026, 0.968],
59-
[-0.020, 0.954], [-0.006, 0.947], [0.003, 0.935], [0.006, 0.926],
60-
[0.005, 0.921], [0.022, 0.923], [0.033, 0.912], [0.029, 0.905],
61-
[0.017, 0.900], [0.012, 0.895], [0.027, 0.893], [0.019, 0.886],
62-
[0.001, 0.883], [-0.012, 0.884], [-0.029, 0.883], [-0.038, 0.879],
59+
[-0.020, 0.954], [-0.006, 0.947], [ 0.003, 0.935], [ 0.006, 0.926],
60+
[ 0.005, 0.921], [ 0.022, 0.923], [ 0.033, 0.912], [ 0.029, 0.905],
61+
[ 0.017, 0.900], [ 0.012, 0.895], [ 0.027, 0.893], [ 0.019, 0.886],
62+
[ 0.001, 0.883], [-0.012, 0.884], [-0.029, 0.883], [-0.038, 0.879],
6363
[-0.057, 0.881], [-0.062, 0.876], [-0.078, 0.876], [-0.087, 0.872],
6464
[-0.030, 0.907], [-0.007, 0.905], [-0.057, 0.916], [-0.025, 0.933],
6565
[-0.077, 0.990], [-0.059, 0.993]])
6666
x = xy[:, 0]*180/3.14159
6767
y = xy[:, 1]*180/3.14159
6868

6969
triangles = np.asarray([
70-
[67, 66, 1], [65, 2, 66], [1, 66, 2], [64, 2, 65], [63, 3, 64],
71-
[60, 59, 57], [2, 64, 3], [3, 63, 4], [0, 67, 1], [62, 4, 63],
72-
[57, 59, 56], [59, 58, 56], [61, 60, 69], [57, 69, 60], [4, 62, 68],
73-
[6, 5, 9], [61, 68, 62], [69, 68, 61], [9, 5, 70], [6, 8, 7],
74-
[4, 70, 5], [8, 6, 9], [56, 69, 57], [69, 56, 52], [70, 10, 9],
70+
[67, 66, 1], [65, 2, 66], [ 1, 66, 2], [64, 2, 65], [63, 3, 64],
71+
[60, 59, 57], [ 2, 64, 3], [ 3, 63, 4], [ 0, 67, 1], [62, 4, 63],
72+
[57, 59, 56], [59, 58, 56], [61, 60, 69], [57, 69, 60], [ 4, 62, 68],
73+
[ 6, 5, 9], [61, 68, 62], [69, 68, 61], [ 9, 5, 70], [ 6, 8, 7],
74+
[ 4, 70, 5], [ 8, 6, 9], [56, 69, 57], [69, 56, 52], [70, 10, 9],
7575
[54, 53, 55], [56, 55, 53], [68, 70, 4], [52, 56, 53], [11, 10, 12],
7676
[69, 71, 68], [68, 13, 70], [10, 70, 13], [51, 50, 52], [13, 68, 71],
7777
[52, 71, 69], [12, 10, 13], [71, 52, 50], [71, 14, 13], [50, 49, 71],

examples/shapes_and_collections/artist_reference.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ def label(xy, text):
6363
# add a path patch
6464
Path = mpath.Path
6565
path_data = [
66-
(Path.MOVETO, [0.018, -0.110]),
67-
(Path.CURVE4, [-0.031, -0.051]),
68-
(Path.CURVE4, [-0.115, 0.073]),
69-
(Path.CURVE4, [-0.030, 0.073]),
70-
(Path.LINETO, [-0.011, 0.039]),
71-
(Path.CURVE4, [0.043, 0.121]),
72-
(Path.CURVE4, [0.075, -0.005]),
73-
(Path.CURVE4, [0.035, -0.027]),
74-
(Path.CLOSEPOLY, [0.018, -0.110])
66+
(Path.MOVETO, [0.018, -0.11]),
67+
(Path.CURVE4, [-0.031, -0.051]),
68+
(Path.CURVE4, [-0.115, 0.073]),
69+
(Path.CURVE4, [-0.03 , 0.073]),
70+
(Path.LINETO, [-0.011, 0.039]),
71+
(Path.CURVE4, [0.043, 0.121]),
72+
(Path.CURVE4, [0.075, -0.005]),
73+
(Path.CURVE4, [0.035, -0.027]),
74+
(Path.CLOSEPOLY, [0.018, -0.11])
7575
]
7676
codes, verts = zip(*path_data)
7777
path = mpath.Path(verts + grid[6], codes)

0 commit comments

Comments
 (0)