-
Notifications
You must be signed in to change notification settings - Fork 599
Some minor edits #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some minor edits #19
Conversation
- changes to the backend discussion - formatting changes - add color mapping to scatter up front
@@ -58,15 +51,16 @@ | |||
"metadata": {}, | |||
"source": [ | |||
"# Quick note on \"backends\" and Jupyter notebooks\n", | |||
"Matplotlib has multiple backends. The backends allow mpl to be used on a variety of platforms with a variety of GUI toolkits (GTK, Qt, Wx, etc.), all of them written so that most of the time, you will not need to care which backend you are using. " | |||
"\n", | |||
"Matplotlib has multiple \"backends\" that handle converting Matplotlib's in-memory representation of your plot into the colorful output you can look at. This is either by writing files (ex png, svg, pdf) thaht ou can use an external tool to look at or by embedding into your GUI toolkit of choice (Qt, Tk, Wx, etc).\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bunch of spelling errors
"source": [ | ||
"which must be done *before* you `import matplotlib.pyplot as plt`.\n", | ||
"\n", | ||
"You can also set the backend via a 'magic ``%matplotlib backend_name``. In addition to setting the backend, the magic also calls `plt.ion()`, which puts Matplotlib in 'interacitve mode' (the inverse is `plt.ioff()`). In 'interactive mode' figures are shown (injected into the web page in the notebook) as soon as they are created. Otherwise, figures are not shown until you explicitly call `plt.show()`.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing closing quote for "magic". Also, we should probably make it clear that this is an "ipython magic".
"ax.set_title('An Example Axes')\n", | ||
"ax.set_ylabel('Y-Axis')\n", | ||
"ax.set_xlabel('X-Axis')" | ||
"ax.set_title('An Diferent Example Axes Tile')\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spelling
"ax.set_title('An Diferent Example Axes Tile')\n", | ||
"ax.set_ylabel('Y-Axis (changed)')\n", | ||
"ax.set_xlabel('X-Axis (changed)')\n", | ||
"fig.canvas.draw_idle()" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the point of this draw_idle(). I really don't want this introduced so early.
"\n", | ||
"### Hex values\n", | ||
"Colors can also be specified by supplying a HTML/CSS hex string, such as `'#0000FF'` for blue. Support for an optional alpha channel was added for v2.0.\n", | ||
"\n", | ||
"### 256 Shades of Gray\n", | ||
"A gray level can be given instead of a color by passing a string representation of a number between 0 and 1, inclusive. `'0.0'` is black, while `'1.0'` is white. `'0.75'` would be a light shade of gray.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did the explanation for grays go?
"# Let printing work the same in Python 2 and 3\n", | ||
"from __future__ import print_function" | ||
] | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I this this removal was unintentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I meant to strip it from all of them.
Please don't. At least not until after the scipy conference. I did not
specify that the tutorial was py3k only.
…On Thu, Jun 14, 2018 at 3:46 PM, Thomas A Caswell ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In AnatomyOfMatplotlib-Part1-Figures_Subplots_and_layouts.ipynb
<#19 (comment)>
:
> @@ -1,20 +1,5 @@
{
"cells": [
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": false,
- "slideshow": {
- "slide_type": "-"
- }
- },
- "outputs": [],
- "source": [
- "# Let printing work the same in Python 2 and 3\n",
- "from __future__ import print_function"
- ]
- },
No, I meant to strip it from all of them.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-DmGiF5Yk5WHkE31V2BKq5CA-KsUks5t8r2dgaJpZM4UZiF1>
.
|
superseded by #20. |
No description provided.