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

Skip to content

Commit 2e7ba53

Browse files
ksundenQuLogic
authored andcommitted
Updating docs for v3.8.0
1 parent 26e147e commit 2e7ba53

File tree

5,897 files changed

+1597222
-1666748
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,897 files changed

+1597222
-1666748
lines changed

3.8.0/.buildinfo

Lines changed: 0 additions & 4 deletions
This file was deleted.

3.8.0/Matplotlib.pdf

52 MB
Binary file not shown.

3.8.0/_downloads/0017d0c84e03d6c5e463e23d8e570671/line_collection.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"name": "python",
6161
"nbconvert_exporter": "python",
6262
"pygments_lexer": "ipython3",
63-
"version": "3.11.4"
63+
"version": "3.11.0"
6464
}
6565
},
6666
"nbformat": 4,

3.8.0/_downloads/00fb9b6278ae3996d0eda53a7198ae42/hatch_style_reference.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"name": "python",
7979
"nbconvert_exporter": "python",
8080
"pygments_lexer": "ipython3",
81-
"version": "3.11.4"
81+
"version": "3.11.0"
8282
}
8383
},
8484
"nbformat": 4,

3.8.0/_downloads/015f3d8484e7cc976026793f37ae6042/demo_ticklabel_alignment.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/0234b09e9a73d4ee840adeb2955c67c3/lines_with_ticks_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/02d0c4a462fb00f782e5ac08185695e5/linestyles.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/0388069c25c84d6bc3a8b03a4f424035/fancyarrow_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"name": "python",
4343
"nbconvert_exporter": "python",
4444
"pygments_lexer": "ipython3",
45-
"version": "3.11.4"
45+
"version": "3.11.0"
4646
}
4747
},
4848
"nbformat": 4,

3.8.0/_downloads/038e6d6e6393de9f0a88a65dd2e8fc4b/wire3d_animation_sgskip.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/03a4ae19b81e22290c46a94bdf82cb9a/mandelbrot.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/03ed879008811eb700082f93269e95f9/scatter3d.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,
Binary file not shown.

3.8.0/_downloads/051b3eaa40b0559c106645ff213ae918/image_clip_path.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"name": "python",
4343
"nbconvert_exporter": "python",
4444
"pygments_lexer": "ipython3",
45-
"version": "3.11.4"
45+
"version": "3.11.0"
4646
}
4747
},
4848
"nbformat": 4,

3.8.0/_downloads/05551433a67337134e29a429c24d6769/demo_text_path.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/05b5828bd1a866c387ec6e60c22612f4/date_precision_and_epochs.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"name": "python",
169169
"nbconvert_exporter": "python",
170170
"pygments_lexer": "ipython3",
171-
"version": "3.11.4"
171+
"version": "3.11.0"
172172
}
173173
},
174174
"nbformat": 4,

3.8.0/_downloads/05cba99c136bdd8ec24d46ef4ed6ba80/color_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"name": "python",
4343
"nbconvert_exporter": "python",
4444
"pygments_lexer": "ipython3",
45-
"version": "3.11.4"
45+
"version": "3.11.0"
4646
}
4747
},
4848
"nbformat": 4,

3.8.0/_downloads/0683d72347b9f107ec3f791a9f28a1d9/scatter_with_legend.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"name": "python",
7979
"nbconvert_exporter": "python",
8080
"pygments_lexer": "ipython3",
81-
"version": "3.11.4"
81+
"version": "3.11.0"
8282
}
8383
},
8484
"nbformat": 4,

3.8.0/_downloads/06d8568c9c6f02bf1c64744e15c4a416/tricontourf.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/06e654e0fb4f1e562a0a57e38cbc660c/marker_reference.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"name": "python",
180180
"nbconvert_exporter": "python",
181181
"pygments_lexer": "ipython3",
182-
"version": "3.11.4"
182+
"version": "3.11.0"
183183
}
184184
},
185185
"nbformat": 4,

3.8.0/_downloads/0791d1d23a687fbe5f0916bf1e77a3a1/errorbar_plot.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/07dc5a95fb1c93323a31a36b68196113/axes_margins.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"name": "python",
6161
"nbconvert_exporter": "python",
6262
"pygments_lexer": "ipython3",
63-
"version": "3.11.4"
63+
"version": "3.11.0"
6464
}
6565
},
6666
"nbformat": 4,

3.8.0/_downloads/0844acc3d8c8d457bc5f707c80e65bd1/fill_between.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/086e6bc8625886d5d0f79235622991ac/imshow.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/088ca86d579a97933334b09cf8f9f03f/rainbow_text.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/09240349fdbe840c8c1035b1e275de73/random_walk.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/09364d81fc1cbd08346bd216bcc75656/centered_ticklabels.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@
1818
"""
1919

2020
import matplotlib.pyplot as plt
21-
import numpy as np
2221

2322
import matplotlib.cbook as cbook
2423
import matplotlib.dates as dates
2524
import matplotlib.ticker as ticker
2625

2726
# Load some financial data; Google's stock price
28-
r = cbook.get_sample_data('goog.npz')['price_data'].view(np.recarray)
27+
r = cbook.get_sample_data('goog.npz')['price_data']
2928
r = r[-250:] # get the last 250 days
3029

3130
fig, ax = plt.subplots()
32-
ax.plot(r.date, r.adj_close)
31+
ax.plot(r["date"], r["adj_close"])
3332

3433
ax.xaxis.set_major_locator(dates.MonthLocator())
3534
# 16 is a slight approximation since months differ in number of days.
@@ -45,5 +44,5 @@
4544
for label in ax.get_xticklabels(minor=True):
4645
label.set_horizontalalignment('center')
4746
imid = len(r) // 2
48-
ax.set_xlabel(str(r.date[imid].item().year))
47+
ax.set_xlabel(str(r["date"][imid].item().year))
4948
plt.show()

3.8.0/_downloads/097a51ca72282d995adff65cc154af2f/embedding_in_gtk3_sgskip.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/09c73b5bab901badc89f8ffc49eeab83/units_sample.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/09caab4922c225ce6337f112aa57234a/stem3d_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"name": "python",
7272
"nbconvert_exporter": "python",
7373
"pygments_lexer": "ipython3",
74-
"version": "3.11.4"
74+
"version": "3.11.0"
7575
}
7676
},
7777
"nbformat": 4,

3.8.0/_downloads/0a2cf45539c4f5419bdc3df46be568cb/usetex.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"name": "python",
2525
"nbconvert_exporter": "python",
2626
"pygments_lexer": "ipython3",
27-
"version": "3.11.4"
27+
"version": "3.11.0"
2828
}
2929
},
3030
"nbformat": 4,

3.8.0/_downloads/0a72db34a04fa8aa4cf4153afe882a6a/fill_between_alpha.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"outputs": [],
1717
"source": [
18-
"import matplotlib.pyplot as plt\nimport numpy as np\n\nimport matplotlib.cbook as cbook\n\n# load up some sample financial data\nr = cbook.get_sample_data('goog.npz')['price_data'].view(np.recarray)\n# create two subplots with the shared x and y axes\nfig, (ax1, ax2) = plt.subplots(1, 2, sharex=True, sharey=True)\n\npricemin = r.close.min()\n\nax1.plot(r.date, r.close, lw=2)\nax2.fill_between(r.date, pricemin, r.close, alpha=0.7)\n\nfor ax in ax1, ax2:\n ax.grid(True)\n ax.label_outer()\n\nax1.set_ylabel('price')\n\nfig.suptitle('Google (GOOG) daily closing price')\nfig.autofmt_xdate()"
18+
"import matplotlib.pyplot as plt\nimport numpy as np\n\nimport matplotlib.cbook as cbook\n\n# load up some sample financial data\nr = cbook.get_sample_data('goog.npz')['price_data']\n# create two subplots with the shared x and y axes\nfig, (ax1, ax2) = plt.subplots(1, 2, sharex=True, sharey=True)\n\npricemin = r[\"close\"].min()\n\nax1.plot(r[\"date\"], r[\"close\"], lw=2)\nax2.fill_between(r[\"date\"], pricemin, r[\"close\"], alpha=0.7)\n\nfor ax in ax1, ax2:\n ax.grid(True)\n ax.label_outer()\n\nax1.set_ylabel('price')\n\nfig.suptitle('Google (GOOG) daily closing price')\nfig.autofmt_xdate()"
1919
]
2020
},
2121
{
@@ -89,7 +89,7 @@
8989
"name": "python",
9090
"nbconvert_exporter": "python",
9191
"pygments_lexer": "ipython3",
92-
"version": "3.11.4"
92+
"version": "3.11.0"
9393
}
9494
},
9595
"nbformat": 4,

3.8.0/_downloads/0aef4bdb1e5aa7434cc8d86d9e094e37/simple_axisline.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/0b0cb67fcd5bdba2f3d86c573642b4de/subplot.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"name": "python",
7272
"nbconvert_exporter": "python",
7373
"pygments_lexer": "ipython3",
74-
"version": "3.11.4"
74+
"version": "3.11.0"
7575
}
7676
},
7777
"nbformat": 4,

3.8.0/_downloads/0b1d42ea8dfe97ee8541230cc369ed77/arranging_axes.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def annotate_axes(ax, text, fontsize=18):
152152
fig, axd = plt.subplot_mosaic([['upper left', 'upper right'],
153153
['lower left', 'lower right']],
154154
figsize=(5.5, 3.5), layout="constrained")
155-
for k in axd:
156-
annotate_axes(axd[k], f'axd["{k}"]', fontsize=14)
155+
for k, ax in axd.items():
156+
annotate_axes(ax, f'axd[{k!r}]', fontsize=14)
157157
fig.suptitle('plt.subplot_mosaic()')
158158

159159
# %%
@@ -200,8 +200,8 @@ def annotate_axes(ax, text, fontsize=18):
200200
fig, axd = plt.subplot_mosaic([['upper left', 'right'],
201201
['lower left', 'right']],
202202
figsize=(5.5, 3.5), layout="constrained")
203-
for k in axd:
204-
annotate_axes(axd[k], f'axd["{k}"]', fontsize=14)
203+
for k, ax in axd.items():
204+
annotate_axes(ax, f'axd[{k!r}]', fontsize=14)
205205
fig.suptitle('plt.subplot_mosaic()')
206206

207207
# %%
@@ -223,8 +223,8 @@ def annotate_axes(ax, text, fontsize=18):
223223
['lower left', 'right']],
224224
gridspec_kw=gs_kw, figsize=(5.5, 3.5),
225225
layout="constrained")
226-
for k in axd:
227-
annotate_axes(axd[k], f'axd["{k}"]', fontsize=14)
226+
for k, ax in axd.items():
227+
annotate_axes(ax, f'axd[{k!r}]', fontsize=14)
228228
fig.suptitle('plt.subplot_mosaic()')
229229

230230
# %%
@@ -262,8 +262,8 @@ def annotate_axes(ax, text, fontsize=18):
262262
['lower left', 'lower right']]
263263

264264
fig, axd = plt.subplot_mosaic(outer, layout="constrained")
265-
for k in axd:
266-
annotate_axes(axd[k], f'axd["{k}"]')
265+
for k, ax in axd.items():
266+
annotate_axes(ax, f'axd[{k!r}]')
267267

268268
# %%
269269
# Low-level and advanced grid methods

3.8.0/_downloads/0bd1a8e995583965bd9982eea897efc9/triplot_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"name": "python",
115115
"nbconvert_exporter": "python",
116116
"pygments_lexer": "ipython3",
117-
"version": "3.11.4"
117+
"version": "3.11.0"
118118
}
119119
},
120120
"nbformat": 4,

3.8.0/_downloads/0bf9e51dec88ec25526322495c8e6273/offset.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/0c0b0ce311b6f2c97acdd3e38db84ddb/embedding_in_gtk3_panzoom_sgskip.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name": "python",
3636
"nbconvert_exporter": "python",
3737
"pygments_lexer": "ipython3",
38-
"version": "3.11.4"
38+
"version": "3.11.0"
3939
}
4040
},
4141
"nbformat": 4,

3.8.0/_downloads/0c0bceec5b66dc4841d06be6852509dc/keyword_plotting.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
Plotting with keywords
44
======================
55
6-
There are some instances where you have data in a format that lets you
7-
access particular variables with strings: for example, with
8-
`numpy.recarray` or `pandas.DataFrame`.
6+
Some data structures, like dict, `structured numpy array
7+
<https://numpy.org/doc/stable/user/basics.rec.html#structured-arrays>`_
8+
or `pandas.DataFrame` provide access to labelled data via string index access
9+
``data[key]``.
910
10-
Matplotlib allows you to provide such an object with the ``data`` keyword
11-
argument. If provided, you may generate plots with the strings
12-
corresponding to these variables.
11+
For these data types, Matplotlib supports passing the whole datastructure via the
12+
``data`` keyword argument, and using the string names as plot function parameters,
13+
where you'd normally pass in your data.
1314
"""
1415

1516
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)