| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,8 +3,7 @@ | |||
| 3 | 3 | Plot types | |
| 4 | 4 | ========== | |
| 5 | 5 | ||
| 6 | - This gallery lists many of the plotting commands in Matplotlib, | ||
| 7 | - (but not all of them!). | ||
| 6 | + Overview of many common plotting commands in Matplotlib. | ||
| 8 | 7 | ||
| 9 | 8 | Note that we have stripped all labels, but they are present by default. | |
| 10 | 9 | See the `gallery <../gallery/index.html>`_ for many more examples and | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,4 +3,4 @@ | |||
| 3 | 3 | Plots of arrays and fields | |
| 4 | 4 | -------------------------- | |
| 5 | 5 | ||
| 6 | - Plotting for arrays of data ``Z(x, y)`` and fields ``U(x, y), V(x, y)`` | ||
| 6 | + Plotting for arrays of data ``Z(x, y)`` and fields ``U(x, y), V(x, y)``. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,9 @@ | |||
| 1 | 1 | """ | |
| 2 | - ===================================== | ||
| 3 | - contour[f]([X, Y], Z, [levels=], ...) | ||
| 4 | - ===================================== | ||
| 2 | + ==================================== | ||
| 3 | + contour(X, Y, Z) / contourf(X, Y, Z) | ||
| 4 | + ==================================== | ||
| 5 | + | ||
| 6 | + See `~matplotlib.axes.Axes.contour` / `~matplotlib.axes.Axes.contourf`. | ||
| 5 | 7 | """ | |
| 6 | 8 | import matplotlib.pyplot as plt | |
| 7 | 9 | import numpy as np | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,9 @@ | |||
| 1 | 1 | """ | |
| 2 | - ======================= | ||
| 3 | - imshow(Z, [cmap=], ...) | ||
| 4 | - ======================= | ||
| 2 | + ========= | ||
| 3 | + imshow(Z) | ||
| 4 | + ========= | ||
| 5 | + | ||
| 6 | + See `~matplotlib.axes.Axes.imshow`. | ||
| 5 | 7 | """ | |
| 6 | 8 | ||
| 7 | 9 | import matplotlib.pyplot as plt | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | """ | |
| 2 | - =================================== | ||
| 3 | - pcolormesh([X, Y], Z, [cmap=], ...) | ||
| 4 | - =================================== | ||
| 2 | + =================== | ||
| 3 | + pcolormesh(X, Y, Z) | ||
| 4 | + =================== | ||
| 5 | 5 | ||
| 6 | 6 | `~.axes.Axes.pcolormesh` is more flexible than `~.axes.Axes.imshow` in that | |
| 7 | 7 | the x and y vectors need not be equally spaced (indeed they can be skewed). | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,9 @@ | |||
| 1 | 1 | """ | |
| 2 | - ========================= | ||
| 3 | - quiver([X, Y], U, V, ...) | ||
| 4 | - ========================= | ||
| 2 | + ================== | ||
| 3 | + quiver(X, Y, U, V) | ||
| 4 | + ================== | ||
| 5 | + | ||
| 6 | + See `~matplotlib.axes.Axes.quiver`. | ||
| 5 | 7 | """ | |
| 6 | 8 | import matplotlib.pyplot as plt | |
| 7 | 9 | import numpy as np | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,9 @@ | |||
| 1 | 1 | """ | |
| 2 | - ======================== | ||
| 3 | - streamplot([X, Y], U, V) | ||
| 4 | - ======================== | ||
| 2 | + ====================== | ||
| 3 | + streamplot(X, Y, U, V) | ||
| 4 | + ====================== | ||
| 5 | + | ||
| 6 | + See `~matplotlib.axes.Axes.streamplot`. | ||
| 5 | 7 | """ | |
| 6 | 8 | import matplotlib.pyplot as plt | |
| 7 | 9 | import numpy as np | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,4 +3,4 @@ | |||
| 3 | 3 | Basic | |
| 4 | 4 | ----- | |
| 5 | 5 | ||
| 6 | - Basic plot types, usually x versus y. | ||
| 6 | + Basic plot types, usually y versus x. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,9 @@ | |||
| 1 | 1 | """ | |
| 2 | - ====================== | ||
| 3 | - bar[h](x, height, ...) | ||
| 4 | - ====================== | ||
| 2 | + ================================ | ||
| 3 | + bar(x, height) / barh(x, height) | ||
| 4 | + ================================ | ||
| 5 | + | ||
| 6 | + See `~matplotlib.axes.Axes.bar` / `~matplotlib.axes.Axes.barh`. | ||
| 5 | 7 | """ | |
| 6 | 8 | import matplotlib.pyplot as plt | |
| 7 | 9 | import numpy as np | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,9 @@ | |||
| 1 | 1 | """ | |
| 2 | - ==================== | ||
| 3 | - pie(X, explode, ...) | ||
| 4 | - ==================== | ||
| 2 | + ====== | ||
| 3 | + pie(X) | ||
| 4 | + ====== | ||
| 5 | + | ||
| 6 | + See `~matplotlib.axes.Axes.pie`. | ||
| 5 | 7 | """ | |
| 6 | 8 | import matplotlib as mpl | |
| 7 | 9 | import matplotlib.pyplot as plt | |
| Back | FazBrowse Home | New Git URL |
0 commit comments