Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit792dfdf

Browse files
authored
Merge pull request#22 from matplotlib/typos
Fixing typos and links
2 parentsfcd1fd7 +7f673d8 commit792dfdf

5 files changed

+13
-15
lines changed

‎AnatomyOfMatplotlib-Part1-Figures_Subplots_and_layouts.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"[Matplotlib](https://github.com/matplotlib) is hosted by GitHub.\n",
5959
"\n",
6060
"### Bug Reports and feature requests\n",
61-
"So, you think you found a bug? Or maybe you think some feature is just too difficult to use? Or missing altogether? Submit your bug reports [here](https://github.com/matplotlib/matplotlib/issues) at Matplotlib's issue tracker. We even have a process for submitting and discussing Matplotlib Enhancement Proposals ([MEPs](http://matplotlib.org/devdocs/devel/MEP/index.html))."
61+
"So, you think you found a bug? Or maybe you think some feature is just too difficult to use? Or missing altogether? Submit your bug reports [here](https://github.com/matplotlib/matplotlib/issues) at Matplotlib's issue tracker. We even have a process for submitting and discussing Matplotlib Enhancement Proposals ([MEPs](https://matplotlib.org/devel/MEP/index.html))."
6262
]
6363
},
6464
{
@@ -200,7 +200,7 @@
200200
"\n",
201201
"However, while we're on the topic, you can control the size of the figure through the ``figsize`` argument, which expects a tuple of ``(width, height)`` in inches.\n",
202202
"\n",
203-
"A really useful utility function is [`figaspect`](http://matplotlib.org/api/figure_api.html?highlight=figaspect#matplotlib.figure.figaspect)"
203+
"A really useful utility function is [`figaspect`](https://matplotlib.org/api/_as_gen/matplotlib.figure.figaspect.html?highlight=figaspect#matplotlib.figure.figaspect)"
204204
]
205205
},
206206
{

‎AnatomyOfMatplotlib-Part3-HowToSpeakMPL.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"- k: black\n",
4444
"- w: white\n",
4545
"\n",
46-
"Other colornames that are allowed are the HTML/CSS colornames such as\"burlywood\" and\"chartreuse\". See the [full list](http://www.w3schools.com/html/html_colornames.asp) of the147 colornames.\n",
46+
"Other colornames that are allowed are the HTML/CSS colornames such as\"burlywood\" and\"chartreuse\". See the [full list](https://www.w3schools.com/Colors/colors_names.asp) of the140 color names.\n",
4747
"\n",
4848
"Matplotlib supports the [xkcd color names](https://xkcd.com/color/rgb/) prefxed by `'xkcd:'`.\n",
4949
"\n",
@@ -112,7 +112,7 @@
112112
"1 | tickright ||5 | caretright ||\">\" | triangle_right||\"4\" | tri_right\n",
113113
"2 | tickup ||6 | caretup ||\"^\" | triangle_up ||\"2\" | tri_up\n",
114114
"3 | tickdown ||7 | caretdown ||\"v\" | triangle_down ||\"1\" | tri_down\n",
115-
"\"None\" | nothing ||`None` |nothing ||\"\" | nothing ||\"\" | nothing"
115+
"\"None\" | nothing ||`None` |default ||\"\" | nothing ||\"\" | nothing"
116116
]
117117
},
118118
{
@@ -128,7 +128,7 @@
128128
"\"octagon\",\"square\",\"pentagon\",\"star\",\"vertical bar\",\"horizontal bar\",\"hexagon 1\",\"hexagon 2\",\n",
129129
"\"tick left\",\"caret left\",\"triangle left\",\"tri left\",\"tick right\",\"caret right\",\"triangle right\",\"tri right\",\n",
130130
"\"tick up\",\"caret up\",\"triangle up\",\"tri up\",\"tick down\",\"caret down\",\"triangle down\",\"tri down\",\n",
131-
"\"Nothing\",\"Nothing\",\"Nothing\",\"Nothing\"]\n",
131+
"\"Nothing\",\"default\",\"Nothing\",\"Nothing\"]\n",
132132
"fig, ax = plt.subplots(1, 1, figsize=(7.5, 4))\n",
133133
"for x, y, m, d in zip(xs.T.flat, ys.T.flat, markers, descripts):\n",
134134
" ax.scatter(x, y, marker=m, s=100)\n",

‎AnatomyOfMatplotlib-Part4-Limits_Legends_and_Layouts.ipynb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
"* A Tick Label is the text that is displayed at that tick.\n",
289289
"* A [`Ticker`](http://matplotlib.org/api/ticker_api.html#module-matplotlib.ticker) automatically determines the ticks for an Axis and formats the tick labels.\n",
290290
"\n",
291-
"[`tick_params()`](http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.tick_params) is often used to help configure your tickers."
291+
"[`tick_params()`](https://matplotlib.org/api/axes_api.html#ticks-and-tick-labels) is often used to help configure your tickers."
292292
]
293293
},
294294
{
@@ -315,9 +315,9 @@
315315
"cell_type":"markdown",
316316
"metadata": {},
317317
"source": [
318-
"A commonly-asked question is\"How do I plotnon-numericalcategories?\"\n",
319-
"\n",
320-
"Currently, the easiest way to do this is to\"fake\" the x-values and then change the tick labels to reflect the category.\n",
318+
"A commonly-asked question is\"How do I plot categories?\"\n",
319+
"\n",
320+
"Starting in version 2.0 of mpl, just like any other data.\n",
321321
"\n",
322322
"For example:"
323323
]
@@ -334,9 +334,7 @@
334334
"fruit, value = zip(*data)\n",
335335
"\n",
336336
"fig, ax = plt.subplots()\n",
337-
"x = np.arange(len(fruit))\n",
338-
"ax.bar(x, value, align='center', color='gray')\n",
339-
"ax.set(xticks=x, xticklabels=fruit)\n",
337+
"ax.bar(fruit, value, align='center', color='gray')\n",
340338
"plt.show()"
341339
]
342340
},

‎AnatomyOfMatplotlib-Part5-Artists.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
"cell_type":"markdown",
162162
"metadata": {},
163163
"source": [
164-
"To see what properties are set for an artist, use [`getp()`](http://matplotlib.org/api/artist_api.html#matplotlib.artist.getp)"
164+
"To see what properties are set for an artist, use [`getp()`](https://matplotlib.org/api/artist_api.html#functions)"
165165
]
166166
},
167167
{
@@ -182,7 +182,7 @@
182182
"metadata": {},
183183
"source": [
184184
"# Collections\n",
185-
"In addition to the Figure and Axes containers, there is another special type of container called a [`Collection`](http://matplotlib.org/api/collections_api.html). A Collection usually contains a list of primitives of the same kind that should all be treated similiarly. For example, a [`CircleCollection`](http://matplotlib.org/api/collections_api.html#matplotlib.collections.CircleCollection) would have a list of [`Circle`](http://matplotlib.org/api/artist_api.html#matplotlib.patches.Circle) objects all with the same color, size, and edge width. Individual property values for artists in the collection can also be set (in some cases)."
185+
"In addition to the Figure and Axes containers, there is another special type of container called a [`Collection`](http://matplotlib.org/api/collections_api.html). A Collection usually contains a list of primitives of the same kind that should all be treated similiarly. For example, a [`CircleCollection`](http://matplotlib.org/api/collections_api.html#matplotlib.collections.CircleCollection) would have a list of [`Circle`](https://matplotlib.org/api/_as_gen/matplotlib.patches.Circle.html) objects all with the same color, size, and edge width. Individual property values for artists in the collection can also be set (in some cases)."
186186
]
187187
},
188188
{

‎solutions/5.1-goldstar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
fig,ax=plt.subplots(1,1)
55

6-
offsets=zip([0.2,0.4,0.6,0.8], [0.5]*4)
6+
offsets=list(zip([0.2,0.4,0.6,0.8], [0.5]*4))
77
collection=StarPolygonCollection(5,
88
offsets=offsets,
99
transOffset=ax.transData,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp