| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ ignore = | |||
| 14 | 14 | # pydocstyle | |
| 15 | 15 | D100, D101, D102, D103, D104, D105, D106, D107, | |
| 16 | 16 | D200, D202, D203, D204, D205, D207, D209, D212, D213, | |
| 17 | - D300, D301 | ||
| 17 | + D301 | ||
| 18 | 18 | D400, D401, D402, D403, D413, | |
| 19 | 19 | ||
| 20 | 20 | exclude = | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,10 @@ | |||
| 1 | - ''' | ||
| 1 | + """ | ||
| 2 | 2 | ========= | |
| 3 | 3 | Barb Demo | |
| 4 | 4 | ========= | |
| 5 | 5 | ||
| 6 | 6 | Demonstration of wind barb plots | |
| 7 | - ''' | ||
| 7 | + """ | ||
| 8 | 8 | import matplotlib.pyplot as plt | |
| 9 | 9 | import numpy as np | |
| 10 | 10 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,11 @@ | |||
| 1 | - ''' | ||
| 1 | + """ | ||
| 2 | 2 | ================== | |
| 3 | 3 | Multicolored lines | |
| 4 | 4 | ================== | |
| 5 | 5 | ||
| 6 | 6 | This example shows how to make a multi-colored line. In this example, the line | |
| 7 | 7 | is colored based on its derivative. | |
| 8 | - ''' | ||
| 8 | + """ | ||
| 9 | 9 | ||
| 10 | 10 | import numpy as np | |
| 11 | 11 | import matplotlib.pyplot as plt | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - ''' | ||
| 1 | + """ | ||
| 2 | 2 | =========== | |
| 3 | 3 | Transoffset | |
| 4 | 4 | =========== | |
@@ -16,7 +16,7 @@ | |||
| 16 | 16 | use the offset_copy function to make a modified copy of | |
| 17 | 17 | this transform, where the modification consists of an | |
| 18 | 18 | offset. | |
| 19 | - ''' | ||
| 19 | + """ | ||
| 20 | 20 | ||
| 21 | 21 | import matplotlib.pyplot as plt | |
| 22 | 22 | import matplotlib.transforms as mtransforms | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,11 @@ | |||
| 1 | - ''' | ||
| 1 | + """ | ||
| 2 | 2 | ============================================================================ | |
| 3 | 3 | Demonstrates plotting contour (level) curves in 3D using the extend3d option | |
| 4 | 4 | ============================================================================ | |
| 5 | 5 | ||
| 6 | 6 | This modification of the contour3d_demo example uses extend3d=True to | |
| 7 | 7 | extend the curves vertically into 'ribbons'. | |
| 8 | - ''' | ||
| 8 | + """ | ||
| 9 | 9 | ||
| 10 | 10 | from mpl_toolkits.mplot3d import axes3d | |
| 11 | 11 | import matplotlib.pyplot as plt | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - ''' | ||
| 1 | + """ | ||
| 2 | 2 | ======================================== | |
| 3 | 3 | Projecting contour profiles onto a graph | |
| 4 | 4 | ======================================== | |
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | onto the 'walls' of the graph. | |
| 8 | 8 | ||
| 9 | 9 | See contourf3d_demo2 for the filled version. | |
| 10 | - ''' | ||
| 10 | + """ | ||
| 11 | 11 | ||
| 12 | 12 | from mpl_toolkits.mplot3d import axes3d | |
| 13 | 13 | import matplotlib.pyplot as plt | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - ''' | ||
| 1 | + """ | ||
| 2 | 2 | =============== | |
| 3 | 3 | Filled contours | |
| 4 | 4 | =============== | |
@@ -8,7 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | 9 | This is like a contourf plot in 2D except that the shaded region corresponding | |
| 10 | 10 | to the level c is graphed on the plane z=c. | |
| 11 | - ''' | ||
| 11 | + """ | ||
| 12 | 12 | ||
| 13 | 13 | from mpl_toolkits.mplot3d import axes3d | |
| 14 | 14 | import matplotlib.pyplot as plt | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - ''' | ||
| 1 | + """ | ||
| 2 | 2 | ====================================== | |
| 3 | 3 | Projecting filled contour onto a graph | |
| 4 | 4 | ====================================== | |
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | 'profiles' onto the 'walls' of the graph. | |
| 8 | 8 | ||
| 9 | 9 | See contour3d_demo2 for the unfilled version. | |
| 10 | - ''' | ||
| 10 | + """ | ||
| 11 | 11 | ||
| 12 | 12 | from mpl_toolkits.mplot3d import axes3d | |
| 13 | 13 | import matplotlib.pyplot as plt | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,10 @@ | |||
| 1 | - ''' | ||
| 1 | + """ | ||
| 2 | 2 | ================ | |
| 3 | 3 | Parametric Curve | |
| 4 | 4 | ================ | |
| 5 | 5 | ||
| 6 | 6 | This example demonstrates plotting a parametric curve in 3D. | |
| 7 | - ''' | ||
| 7 | + """ | ||
| 8 | 8 | ||
| 9 | 9 | import numpy as np | |
| 10 | 10 | import matplotlib.pyplot as plt | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,14 +19,14 @@ | |||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | 21 | def lorenz(x, y, z, s=10, r=28, b=2.667): | |
| 22 | - ''' | ||
| 22 | + """ | ||
| 23 | 23 | Given: | |
| 24 | 24 | x, y, z: a point of interest in three dimensional space | |
| 25 | 25 | s, r, b: parameters defining the lorenz attractor | |
| 26 | 26 | Returns: | |
| 27 | 27 | x_dot, y_dot, z_dot: values of the lorenz attractor's partial | |
| 28 | 28 | derivatives at the point x, y, z | |
| 29 | - ''' | ||
| 29 | + """ | ||
| 30 | 30 | x_dot = s*(y - x) | |
| 31 | 31 | y_dot = r*x - y - x*z | |
| 32 | 32 | z_dot = x*y - b*z | |
| Back | FazBrowse Home | New Git URL |
0 commit comments