8000 linking front thumbnails, updating screenshots + pyplot API page by choldgraf · Pull Request #8581 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

linking front thumbnails, updating screenshots + pyplot API page #8581

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

Merged
merged 7 commits into from
May 12, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
addressing comments
  • Loading branch information
choldgraf committed May 11, 2017
commit 7e5bee994a441cf1050201751f6242533c7aea15
8 changes: 5 additions & 3 deletions doc/api/pyplot_summary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ The Object-Oriented API

Most of these functions also exist as methods in the
:class:`matplotlib.axes.Axes` class. You can use them with the
so-called "Object Oriented" approach to Matplotlib.
"Object Oriented" approach to Matplotlib.

While it is easy to quickly generate plots with the
:mod:`matplotlib.pyplot` module,
we recommend using the object-oriented approach for more control
and customization of your plots. For some examples of the OO approach
to Matplotlib, see the :ref:`api_examples` examples.
and customization of your plots. See the methods in the
:meth:`matplotlib.axes.Axes` class for many of the same plotting functions.
For examples of the OO approach to Matplotlib, see the
:ref:`API Examples<api_examples>`.

Colors in Matplotlib
--------------------
Expand Down
6 changes: 2 additions & 4 deletions examples/lines_bars_and_markers/categorical_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
How to use categorical variables in matplotlib.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matplotlib


Many times you want to create a plot that uses categorical variables
in Matplotlib. For example, your data may naturally fall into
several "bins" and you're interested in summarizing the data per
bin. Matplotlib allows you to pass categorical variables directly to
many plotting functions.
in Matplotlib. Matplotlib allows you to pass categorical variables directly to
many plotting functions, which we demonstrate below.
"""
import matplotlib.pyplot as plt

Expand Down
2 changes: 1 addition & 1 deletion tutorials/01_introductory/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
# Plotting with categorical variables
# ===================================
#
# It is also possible to create a plot using categorical variables
# It is also possible to create a plot using categorical variables.
# Matplotlib allows you to pass categorical variables directly to
# many plotting functions. For example:

Expand Down
22 changes: 11 additions & 11 deletions tutorials/01_introductory/sample_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Line Plot
=========

Here's now to create a line plot with text labels using
Here's how to create a line plot with text labels using
:func:`~matplotlib.pyplot.plot`.

.. figure:: ../../gallery/pylab_examples/images/sphx_glr_simple_plot_001.png
Expand Down Expand Up @@ -57,7 +57,7 @@
Path demo
=========

You can add other paths in matplotlib using the
You can add arbitrary paths in Matplotlib using the
:mod:`matplotlib.path` module:

.. figure:: ../../gallery/shapes_and_collections/images/sphx_glr_path_patch_001.png
Expand All @@ -84,7 +84,7 @@
Surface3d

Thanks to John Porter, Jonathon Taylor, Reinier Heeres, and Ben Root for
the `mplot3d` toolkit. This toolkit is included with all standard matplotlib
the `mplot3d` toolkit. This toolkit is included with all standard Matplotlib
installs.

.. _screenshots_ellipse_demo:
Expand Down Expand Up @@ -115,7 +115,7 @@

In support of the
`Phoenix <http://www.jpl.nasa.gov/news/phoenix/main.php>`_ mission to
Mars (which used matplotlib to display ground tracking of spacecraft),
Mars (which used Matplotlib to display ground tracking of spacecraft),
Michael Droettboom built on work by Charlie Moad to provide an extremely
accurate 8-spline approximation to elliptical arcs (see
:class:`~matplotlib.patches.Arc`), which are insensitive to zoom level.
Expand Down Expand Up @@ -242,8 +242,8 @@
Date demo
=========

You can plot date data with major and minor ticks and custom tick formatters
for both.
You can plot timeseries data with major and minor ticks and custom
tick formatters for both.

.. figure:: ../../gallery/api/images/sphx_glr_date_001.png
:target: ../../gallery/api/date.html
Expand Down Expand Up @@ -313,7 +313,7 @@
Mathtext_examples
=================

Below is a sampling of the many TeX expressions now supported by matplotlib's
Below is a sampling of the many TeX expressions now supported by Matplotlib's
internal mathtext engine. The mathtext module provides TeX style mathematical
expressions using `FreeType <https://www.freetype.org/>`_
and the DejaVu, BaKoMa computer modern, or `STIX <http://www.stixfonts.org>`_
Expand All @@ -336,7 +336,7 @@
Native TeX rendering
====================

Although matplotlib's internal math rendering engine is quite
Although Matplotlib's internal math rendering engine is quite
powerful, sometimes you need TeX. Matplotlib supports external TeX
rendering of strings with the *usetex* option.

Expand All @@ -352,7 +352,7 @@
EEG demo
=========

You can embed matplotlib into pygtk, wx, Tk, or Qt applications.
You can embed Matplotlib into pygtk, wx, Tk, or Qt applications.
Here is a screenshot of an EEG viewer called `pbrain
<https://github.com/nipy/pbrain>`__.

Expand All @@ -361,7 +361,7 @@
The lower axes uses :func:`~matplotlib.pyplot.specgram`
to plot the spectrogram of one of the EEG channels.

For examples of how to embed matplotlib in different toolkits, see:
For examples of how to embed Matplotlib in different toolkits, see:

* :ref:`sphx_glr_gallery_user_interfaces_embedding_in_gtk2_sgskip.py`
* :ref:`sphx_glr_gallery_user_interfaces_embedding_in_wx2_sgskip.py`
Expand All @@ -372,7 +372,7 @@
XKCD-style sketch plots
=======================

matplotlib supports plotting in the style of `xkcd
Matplotlib supports plotting in the style of `xkcd
<http://www.xkcd.com/>`.

.. figure:: ../../gallery/showcase/images/sphx_glr_xkcd_001.png
Expand Down
0