Skip to content

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

Closed
wants to merge 4 commits into from
Closed

Some minor edits #19

wants to merge 4 commits into from

Conversation

tacaswell
Copy link
Member

No description provided.

@@ -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",
Copy link
Member

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",
Copy link
Member

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",
Copy link
Member

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()"
Copy link
Member

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",
Copy link
Member

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"
]
},
Copy link
Member

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?

Copy link
Member Author

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.

@WeatherGod
Copy link
Member

WeatherGod commented Jun 14, 2018 via email

@WeatherGod WeatherGod mentioned this pull request Jun 28, 2018
@WeatherGod
Copy link
Member

superseded by #20.

@WeatherGod WeatherGod closed this Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants