Skip to content

Commit 2659c13

Browse files
MatplotlibCircleBotMatplotlibCircleBot
authored andcommitted
Docs build of a1937d488997169991c0c82edfcf04c2f7307613
1 parent c1b66f3 commit 2659c13

File tree

5,031 files changed

+64247
-56035
lines changed

Some content is hidden

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

5,031 files changed

+64247
-56035
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: fee21aba0ad35d7353946075a94d4ae9
3+
config: 557cc0acf1b07daed2c7eaeb647fd9d9
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_downloads/2dcollections3d.ipynb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
{
22
"metadata": {
33
"language_info": {
4+
"version": "3.5.3",
45
"codemirror_mode": {
56
"version": 3,
67
"name": "ipython"
78
},
8-
"name": "python",
9-
"pygments_lexer": "ipython3",
109
"file_extension": ".py",
11-
"mimetype": "text/x-python",
10+
"name": "python",
1211
"nbconvert_exporter": "python",
13-
"version": "3.5.2"
12+
"mimetype": "text/x-python",
13+
"pygments_lexer": "ipython3"
1414
},
1515
"kernelspec": {
1616
"display_name": "Python 3",
17-
"name": "python3",
18-
"language": "python"
17+
"language": "python",
18+
"name": "python3"
1919
}
2020
},
2121
"cells": [
2222
{
23-
"source": [
24-
"%matplotlib inline"
25-
],
23+
"execution_count": null,
24+
"cell_type": "code",
2625
"metadata": {
2726
"collapsed": false
2827
},
29-
"outputs": [],
30-
"cell_type": "code",
31-
"execution_count": null
28+
"source": [
29+
"%matplotlib inline"
30+
],
31+
"outputs": []
3232
},
3333
{
34+
"metadata": {},
35+
"cell_type": "markdown",
3436
"source": [
3537
"\n# Plot 2D data on 3D plot\n\n\nDemonstrates using ax.plot's zdir keyword to plot 2D data on\nselective axes of a 3D plot.\n\n"
36-
],
37-
"metadata": {},
38-
"cell_type": "markdown"
38+
]
3939
},
4040
{
41-
"source": [
42-
"from mpl_toolkits.mplot3d import Axes3D\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = fig.gca(projection='3d')\n\n# Plot a sin curve using the x and y axes.\nx = np.linspace(0, 1, 100)\ny = np.sin(x * 2 * np.pi) / 2 + 0.5\nax.plot(x, y, zs=0, zdir='z', label='curve in (x,y)')\n\n# Plot scatterplot data (20 2D points per colour) on the x and z axes.\ncolors = ('r', 'g', 'b', 'k')\n\n# Fixing random state for reproducibility\nnp.random.seed(19680801)\n\nx = np.random.sample(20 * len(colors))\ny = np.random.sample(20 * len(colors))\nc_list = []\nfor c in colors:\n c_list.extend([c] * 20)\n# By using zdir='y', the y value of these points is fixed to the zs value 0\n# and the (x,y) points are plotted on the x and z axes.\nax.scatter(x, y, zs=0, zdir='y', c=c_list, label='points in (x,z)')\n\n# Make legend, set axes limits and labels\nax.legend()\nax.set_xlim(0, 1)\nax.set_ylim(0, 1)\nax.set_zlim(0, 1)\nax.set_xlabel('X')\nax.set_ylabel('Y')\nax.set_zlabel('Z')\n\n# Customize the view angle so it's easier to see that the scatter points lie\n# on the plane y=0\nax.view_init(elev=20., azim=-35)\n\nplt.show()"
43-
],
41+
"execution_count": null,
42+
"cell_type": "code",
4443
"metadata": {
4544
"collapsed": false
4645
},
47-
"outputs": [],
48-
"cell_type": "code",
49-
"execution_count": null
46+
"source": [
47+
"from mpl_toolkits.mplot3d import Axes3D\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = fig.gca(projection='3d')\n\n# Plot a sin curve using the x and y axes.\nx = np.linspace(0, 1, 100)\ny = np.sin(x * 2 * np.pi) / 2 + 0.5\nax.plot(x, y, zs=0, zdir='z', label='curve in (x,y)')\n\n# Plot scatterplot data (20 2D points per colour) on the x and z axes.\ncolors = ('r', 'g', 'b', 'k')\n\n# Fixing random state for reproducibility\nnp.random.seed(19680801)\n\nx = np.random.sample(20 * len(colors))\ny = np.random.sample(20 * len(colors))\nc_list = []\nfor c in colors:\n c_list.extend([c] * 20)\n# By using zdir='y', the y value of these points is fixed to the zs value 0\n# and the (x,y) points are plotted on the x and z axes.\nax.scatter(x, y, zs=0, zdir='y', c=c_list, label='points in (x,z)')\n\n# Make legend, set axes limits and labels\nax.legend()\nax.set_xlim(0, 1)\nax.set_ylim(0, 1)\nax.set_zlim(0, 1)\nax.set_xlabel('X')\nax.set_ylabel('Y')\nax.set_zlabel('Z')\n\n# Customize the view angle so it's easier to see that the scatter points lie\n# on the plane y=0\nax.view_init(elev=20., azim=-35)\n\nplt.show()"
48+
],
49+
"outputs": []
5050
}
5151
],
5252
"nbformat": 4,

_downloads/3D.ipynb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
{
22
"metadata": {
33
"language_info": {
4+
"version": "3.5.3",
45
"codemirror_mode": {
56
"version": 3,
67
"name": "ipython"
78
},
8-
"name": "python",
9-
"pygments_lexer": "ipython3",
109
"file_extension": ".py",
11-
"mimetype": "text/x-python",
10+
"name": "python",
1211
"nbconvert_exporter": "python",
13-
"version": "3.5.2"
12+
"mimetype": "text/x-python",
13+
"pygments_lexer": "ipython3"
1414
},
1515
"kernelspec": {
1616
"display_name": "Python 3",
17-
"name": "python3",
18-
"language": "python"
17+
"language": "python",
18+
"name": "python3"
1919
}
2020
},
2121
"cells": [
2222
{
23-
"source": [
24-
"%matplotlib inline"
25-
],
23+
"execution_count": null,
24+
"cell_type": "code",
2625
"metadata": {
2726
"collapsed": false
2827
},
29-
"outputs": [],
30-
"cell_type": "code",
31-
"execution_count": null
28+
"source": [
29+
"%matplotlib inline"
30+
],
31+
"outputs": []
3232
},
3333
{
34+
"metadata": {},
35+
"cell_type": "markdown",
3436
"source": [
3537
"\n# Frontpage 3D example\n\n\nThis example reproduces the frontpage 3D example.\n\n\n"
36-
],
37-
"metadata": {},
38-
"cell_type": "markdown"
38+
]
3939
},
4040
{
41-
"source": [
42-
"from mpl_toolkits.mplot3d import Axes3D\nfrom matplotlib import cbook\nfrom matplotlib import cm\nfrom matplotlib.colors import LightSource\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nfilename = cbook.get_sample_data('jacksboro_fault_dem.npz', asfileobj=False)\nwith np.load(filename) as dem:\n z = dem['elevation']\n nrows, ncols = z.shape\n x = np.linspace(dem['xmin'], dem['xmax'], ncols)\n y = np.linspace(dem['ymin'], dem['ymax'], nrows)\n x, y = np.meshgrid(x, y)\n\nregion = np.s_[5:50, 5:50]\nx, y, z = x[region], y[region], z[region]\n\nfig, ax = plt.subplots(subplot_kw=dict(projection='3d'))\n\nls = LightSource(270, 45)\n# To use a custom hillshading mode, override the built-in shading and pass\n# in the rgb colors of the shaded surface calculated from \"shade\".\nrgb = ls.shade(z, cmap=cm.gist_earth, vert_exag=0.1, blend_mode='soft')\nsurf = ax.plot_surface(x, y, z, rstride=1, cstride=1, facecolors=rgb,\n linewidth=0, antialiased=False, shade=False)\nax.set_xticks([])\nax.set_yticks([])\nax.set_zticks([])\nfig.savefig(\"surface3d_frontpage.png\", dpi=25) # results in 160x120 px image"
43-
],
41+
"execution_count": null,
42+
"cell_type": "code",
4443
"metadata": {
4544
"collapsed": false
4645
},
47-
"outputs": [],
48-
"cell_type": "code",
49-
"execution_count": null
46+
"source": [
47+
"from mpl_toolkits.mplot3d import Axes3D\nfrom matplotlib import cbook\nfrom matplotlib import cm\nfrom matplotlib.colors import LightSource\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nfilename = cbook.get_sample_data('jacksboro_fault_dem.npz', asfileobj=False)\nwith np.load(filename) as dem:\n z = dem['elevation']\n nrows, ncols = z.shape\n x = np.linspace(dem['xmin'], dem['xmax'], ncols)\n y = np.linspace(dem['ymin'], dem['ymax'], nrows)\n x, y = np.meshgrid(x, y)\n\nregion = np.s_[5:50, 5:50]\nx, y, z = x[region], y[region], z[region]\n\nfig, ax = plt.subplots(subplot_kw=dict(projection='3d'))\n\nls = LightSource(270, 45)\n# To use a custom hillshading mode, override the built-in shading and pass\n# in the rgb colors of the shaded surface calculated from \"shade\".\nrgb = ls.shade(z, cmap=cm.gist_earth, vert_exag=0.1, blend_mode='soft')\nsurf = ax.plot_surface(x, y, z, rstride=1, cstride=1, facecolors=rgb,\n linewidth=0, antialiased=False, shade=False)\nax.set_xticks([])\nax.set_yticks([])\nax.set_zticks([])\nfig.savefig(\"surface3d_frontpage.png\", dpi=25) # results in 160x120 px image"
48+
],
49+
"outputs": []
5050
}
5151
],
5252
"nbformat": 4,

_downloads/3d_bars.ipynb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
{
2+
"metadata": {
3+
"language_info": {
4+
"version": "3.5.3",
5+
"codemirror_mode": {
6+
"version": 3,
7+
"name": "ipython"
8+
},
9+
"file_extension": ".py",
10+
"name": "python",
11+
"nbconvert_exporter": "python",
12+
"mimetype": "text/x-python",
13+
"pygments_lexer": "ipython3"
14+
},
15+
"kernelspec": {
16+
"display_name": "Python 3",
17+
"language": "python",
18+
"name": "python3"
19+
}
20+
},
221
"cells": [
322
{
4-
"cell_type": "code",
523
"execution_count": null,
24+
"cell_type": "code",
625
"metadata": {
726
"collapsed": false
827
},
@@ -12,15 +31,15 @@
1231
"outputs": []
1332
},
1433
{
15-
"cell_type": "markdown",
1634
"metadata": {},
35+
"cell_type": "markdown",
1736
"source": [
1837
"\n# Demo of 3D bar charts\n\n\nA basic demo of how to plot 3D bars with and without\nshading.\n\n\n"
1938
]
2039
},
2140
{
22-
"cell_type": "code",
2341
"execution_count": null,
42+
"cell_type": "code",
2443
"metadata": {
2544
"collapsed": false
2645
},
@@ -30,25 +49,6 @@
3049
"outputs": []
3150
}
3251
],
33-
"nbformat_minor": 0,
34-
"metadata": {
35-
"kernelspec": {
36-
"display_name": "Python 3",
37-
"language": "python",
38-
"name": "python3"
39-
},
40-
"language_info": {
41-
"version": "3.5.2",
42-
"nbconvert_exporter": "python",
43-
"mimetype": "text/x-python",
44-
"codemirror_mode": {
45-
"version": 3,
46-
"name": "ipython"
47-
},
48-
"file_extension": ".py",
49-
"pygments_lexer": "ipython3",
50-
"name": "python"
51-
}
52-
},
53-
"nbformat": 4
52+
"nbformat": 4,
53+
"nbformat_minor": 0
5454
}

_downloads/accented_text.ipynb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
{
2+
"metadata": {
3+
"language_info": {
4+
"version": "3.5.3",
5+
"codemirror_mode": {
6+
"version": 3,
7+
"name": "ipython"
8+
},
9+
"file_extension": ".py",
10+
"name": "python",
11+
"nbconvert_exporter": "python",
12+
"mimetype": "text/x-python",
13+
"pygments_lexer": "ipython3"
14+
},
15+
"kernelspec": {
16+
"display_name": "Python 3",
17+
"language": "python",
18+
"name": "python3"
19+
}
20+
},
221
"cells": [
322
{
4-
"cell_type": "code",
523
"execution_count": null,
24+
"cell_type": "code",
625
"metadata": {
726
"collapsed": false
827
},
@@ -12,15 +31,15 @@
1231
"outputs": []
1332
},
1433
{
15-
"cell_type": "markdown",
1634
"metadata": {},
35+
"cell_type": "markdown",
1736
"source": [
1837
"\n# Using accented text in matplotlib\n\n\nMatplotlib supports accented characters via TeX mathtext or unicode.\n\nUsing mathtext, the following accents are provided: \\hat, \\breve, \\grave, \\bar,\n\\acute, \\tilde, \\vec, \\dot, \\ddot. All of them have the same syntax,\ne.g., to make an overbar you do \\bar{o} or to make an o umlaut you do\n\\ddot{o}. The shortcuts are also provided, e.g.,: \\\"o \\'e \\`e \\~n \\.x\n\\^y\n\n\n"
1938
]
2039
},
2140
{
22-
"cell_type": "code",
2341
"execution_count": null,
42+
"cell_type": "code",
2443
"metadata": {
2544
"collapsed": false
2645
},
@@ -30,25 +49,6 @@
3049
"outputs": []
3150
}
3251
],
33-
"nbformat_minor": 0,
34-
"metadata": {
35-
"kernelspec": {
36-
"display_name": "Python 3",
37-
"language": "python",
38-
"name": "python3"
39-
},
40-
"language_info": {
41-
"version": "3.5.2",
42-
"nbconvert_exporter": "python",
43-
"mimetype": "text/x-python",
44-
"codemirror_mode": {
45-
"version": 3,
46-
"name": "ipython"
47-
},
48-
"file_extension": ".py",
49-
"pygments_lexer": "ipython3",
50-
"name": "python"
51-
}
52-
},
53-
"nbformat": 4
52+
"nbformat": 4,
53+
"nbformat_minor": 0
5454
}

_downloads/advanced_hillshading.ipynb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
{
2+
"metadata": {
3+
"language_info": {
4+
"version": "3.5.3",
5+
"codemirror_mode": {
6+
"version": 3,
7+
"name": "ipython"
8+
},
9+
"file_extension": ".py",
10+
"name": "python",
11+
"nbconvert_exporter": "python",
12+
"mimetype": "text/x-python",
13+
"pygments_lexer": "ipython3"
14+
},
15+
"kernelspec": {
16+
"display_name": "Python 3",
17+
"language": "python",
18+
"name": "python3"
19+
}
20+
},
221
"cells": [
322
{
4-
"cell_type": "code",
523
"execution_count": null,
24+
"cell_type": "code",
625
"metadata": {
726
"collapsed": false
827
},
@@ -12,15 +31,15 @@
1231
"outputs": []
1332
},
1433
{
15-
"cell_type": "markdown",
1634
"metadata": {},
35+
"cell_type": "markdown",
1736
"source": [
1837
"\n# Hillshading\n\n\nDemonstrates a few common tricks with shaded plots.\n\n"
1938
]
2039
},
2140
{
22-
"cell_type": "code",
2341
"execution_count": null,
42+
"cell_type": "code",
2443
"metadata": {
2544
"collapsed": false
2645
},
@@ -30,25 +49,6 @@
3049
"outputs": []
3150
}
3251
],
33-
"nbformat_minor": 0,
34-
"metadata": {
35-
"kernelspec": {
36-
"display_name": "Python 3",
37-
"language": "python",
38-
"name": "python3"
39-
},
40-
"language_info": {
41-
"version": "3.5.2",
42-
"nbconvert_exporter": "python",
43-
"mimetype": "text/x-python",
44-
"codemirror_mode": {
45-
"version": 3,
46-
"name": "ipython"
47-
},
48-
"file_extension": ".py",
49-
"pygments_lexer": "ipython3",
50-
"name": "python"
51-
}
52-
},
53-
"nbformat": 4
52+
"nbformat": 4,
53+
"nbformat_minor": 0
5454
}

0 commit comments

Comments
 (0)