Skip to content

Commit 1531b52

Browse files
committed
Use triple-double-quotes for docstrings
1 parent c041352 commit 1531b52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+413
-467
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ignore =
1414
# pydocstyle
1515
D100, D101, D102, D103, D104, D105, D106, D107,
1616
D200, D202, D203, D204, D205, D207, D209, D212, D213,
17-
D300, D301
17+
D301
1818
D400, D401, D402, D403, D413,
1919

2020
exclude =

examples/images_contours_and_fields/barb_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
'''
1+
"""
22
=========
33
Barb Demo
44
=========
55
66
Demonstration of wind barb plots
7-
'''
7+
"""
88
import matplotlib.pyplot as plt
99
import numpy as np
1010

examples/lines_bars_and_markers/multicolored_line.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
'''
1+
"""
22
==================
33
Multicolored lines
44
==================
55
66
This example shows how to make a multi-colored line. In this example, the line
77
is colored based on its derivative.
8-
'''
8+
"""
99

1010
import numpy as np
1111
import matplotlib.pyplot as plt

examples/misc/transoffset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'''
1+
"""
22
===========
33
Transoffset
44
===========
@@ -16,7 +16,7 @@
1616
use the offset_copy function to make a modified copy of
1717
this transform, where the modification consists of an
1818
offset.
19-
'''
19+
"""
2020

2121
import matplotlib.pyplot as plt
2222
import matplotlib.transforms as mtransforms

examples/mplot3d/contour3d_2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
'''
1+
"""
22
============================================================================
33
Demonstrates plotting contour (level) curves in 3D using the extend3d option
44
============================================================================
55
66
This modification of the contour3d_demo example uses extend3d=True to
77
extend the curves vertically into 'ribbons'.
8-
'''
8+
"""
99

1010
from mpl_toolkits.mplot3d import axes3d
1111
import matplotlib.pyplot as plt

examples/mplot3d/contour3d_3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'''
1+
"""
22
========================================
33
Projecting contour profiles onto a graph
44
========================================
@@ -7,7 +7,7 @@
77
onto the 'walls' of the graph.
88
99
See contourf3d_demo2 for the filled version.
10-
'''
10+
"""
1111

1212
from mpl_toolkits.mplot3d import axes3d
1313
import matplotlib.pyplot as plt

examples/mplot3d/contourf3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'''
1+
"""
22
===============
33
Filled contours
44
===============
@@ -8,7 +8,7 @@
88
99
This is like a contourf plot in 2D except that the shaded region corresponding
1010
to the level c is graphed on the plane z=c.
11-
'''
11+
"""
1212

1313
from mpl_toolkits.mplot3d import axes3d
1414
import matplotlib.pyplot as plt

examples/mplot3d/contourf3d_2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'''
1+
"""
22
======================================
33
Projecting filled contour onto a graph
44
======================================
@@ -7,7 +7,7 @@
77
'profiles' onto the 'walls' of the graph.
88
99
See contour3d_demo2 for the unfilled version.
10-
'''
10+
"""
1111

1212
from mpl_toolkits.mplot3d import axes3d
1313
import matplotlib.pyplot as plt

examples/mplot3d/lines3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
'''
1+
"""
22
================
33
Parametric Curve
44
================
55
66
This example demonstrates plotting a parametric curve in 3D.
7-
'''
7+
"""
88

99
import numpy as np
1010
import matplotlib.pyplot as plt

examples/mplot3d/lorenz_attractor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919

2020

2121
def lorenz(x, y, z, s=10, r=28, b=2.667):
22-
'''
22+
"""
2323
Given:
2424
x, y, z: a point of interest in three dimensional space
2525
s, r, b: parameters defining the lorenz attractor
2626
Returns:
2727
x_dot, y_dot, z_dot: values of the lorenz attractor's partial
2828
derivatives at the point x, y, z
29-
'''
29+
"""
3030
x_dot = s*(y - x)
3131
y_dot = r*x - y - x*z
3232
z_dot = x*y - b*z

0 commit comments

Comments
 (0)