8000 Re-organize What's new page by QuLogic · Pull Request #9260 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Re-organize What's new page #9260

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 49 commits into from
Oct 7, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
a1dc966
DOC: Correct review issues with what's new page.
QuLogic Oct 2, 2017
3809204
DOC: Add more plots to What's new page.
QuLogic Oct 2, 2017
7ef54d8
DOC: put in top-level sections
tacaswell Oct 2, 2017
3e67e1a
DOC: move polar plot whats new entry
tacaswell Oct 2, 2017
cbdb552
DOC: move js animation whats new
tacaswell Oct 2, 2017
e5784e3
DOC: move TransformedPatchPath docs
tacaswell Oct 2, 2017
10272f4
DOC: move checkbox widget docs
tacaswell Oct 2, 2017
92f211c
DOC: move animation ABC whats new
tacaswell Oct 2, 2017
1f41d33
DOC: move AnchoreSizeBar whats new
tacaswell Oct 2, 2017
e7b3fc7
DOC: move annotation whats new
tacaswell Oct 2, 2017
e5171ad
DOC: move mplot3d whats new
tacaswell Oct 2, 2017
109aaf7
DOC: move quiver/barbs whats new
tacaswell Oct 2, 2017
ec8b1d3
DOC: move hexbin whats new
tacaswell Oct 2, 2017
bfa2af3
DOC: move the legend whats new
tacaswell Oct 2, 2017
2947041
DOC: move figure clear what new
tacaswell Oct 2, 2017
48e2280
DOC: remove avconv whats new
tacaswell Oct 2, 2017
c9e5ccc
DOC: move non-finite axis limits whats new to api changes
tacaswell Oct 2, 2017
2773dae
DOC: move meta-data whats new
tacaswell Oct 2, 2017
0804809
DOC: move LogFormatterMathtext whats new
tacaswell Oct 2, 2017
4841e9c
DOC: move patch simplification whats new
tacaswell Oct 2, 2017
b0c71ca
DOC: move PercentFormatter whats new
tacaswell Oct 2, 2017
4570155
DOC: move quiverkey whats new
tacaswell Oct 2, 2017
f6331fb
DOC: move reproducible whats new
tacaswell Oct 2, 2017
9690898
DOC: move collection scatter flattening docs to api changes
tacaswell Oct 2, 2017
5fb27d1
DOC: move colorbare reversed whats new
tacaswell Oct 2, 2017
6652dc7
DOC: move setp whats new
tacaswell Oct 2, 2017
92a4835
DOC: move and expand streamplot whats new
tacaswell Oct 2, 2017
9adf3d9
DOC: move tick_params rotation whats new
tacaswell Oct 2, 2017
28afbf6
DOC: move shaded 3D bar whats new docs
tacaswell Oct 2, 2017
1b6326d
DOC: move autofmt_xdata whats new
tacaswell Oct 2, 2017
429f961
DOC: move subplot2grid whats new
tacaswell Oct 2, 2017
bf6f801
DOC: hove fill_betweenx whats new
tacaswell Oct 2, 2017
9731438
DOC: hove rcParams validation whats new
tacaswell Oct 2, 2017
f81ec16
DOC: move EngFormatter whats new
tacaswell Oct 2, 2017
266f0c0
DOC: remove temporary heading
tacaswell Oct 2, 2017
6f27317
DOC: document changing font cache to json
tacaswell Oct 2, 2017
88894a9
DOC: add stub sections
tacaswell Oct 2, 2017
3a58899
DOC: fix headline
tacaswell Oct 2, 2017
5a15e2a
DOC: fill in remaining whats new entries
tacaswell Oct 4, 2017
7b58314
DOC: Fix minor capitalization issues.
QuLogic Oct 5, 2017
6d89c85
DOC: respond to review comments
tacaswell Oct 6, 2017
8d40a84
DOC: remove all whats new 'Example' sub-headings
tacaswell Oct 6, 2017
b823496
DOC: remove api change entry for reverted change
tacaswell Oct 6, 2017
2ee903a
DOC: merge up and organize api changes
tacaswell Oct 7, 2017
d8454ad
DOC: tweak whats new a bit
tacaswell Oct 7, 2017
1214252
DOC: fix ghissue markup
tacaswell Oct 7, 2017
d4f2540
DOC: minor review comments
tacaswell Oct 7, 2017
182430d
DOC: minor edits
tacaswell Oct 7, 2017
2ba2bab
DOC: one last double backquote
tacaswell Oct 7, 2017
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
DOC: respond to review comments
  • Loading branch information
tacaswell committed Oct 6, 2017
commit 6d89c855f3e94a14bc36963bf4cd472d7f256219
18 changes: 16 additions & 2 deletions doc/api/api_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ When using :func:`~matplotlib.axes.Axes.set_xlim` and
results in a ``ValueError``. The previous behavior resulted in the
limits being erroneously reset to ``(-0.001, 0.001)``.

`scatter` and `Collection` offsets are no longer implicitly flattened
---------------------------------------------------------------------
``scatter`` and ``Collection`` offsets are no longer implicitly flattened
--------------------------------------- 8000 ----------------------------------

`~matplotlib.collections.Collection` (and thus both 2D
`~matplotlib.axes.Axes.scatter` and 3D
Expand All @@ -384,6 +384,20 @@ longer implicitly flattens its offsets. As a consequence, ``scatter``'s ``x``
and ``y`` arguments can no longer be 2+-dimensional arrays.


Deprecation of the former validators for ``contour.negative_linestyle``
-----------------------------------------------------------------------


The former public validation functions ``validate_negative_linestyle``
and ``validate_negative_linestyle_legacy`` will be deprecated in 2.1 and
may be removed in 2.3. There are no public functions to replace them.

::

grid.linestyle : (1, 3) # loosely dotted grid lines
contour.negative_linestyle : dashdot # previously only solid or dashed


API Changes in 2.0.1
====================

Expand Down
72 changes: 30 additions & 42 deletions doc/users/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ New in Matplotlib 2.1
Documentation
+++++++++++++

The examples have been migrated to use sphinx gallery. This allows
The examples have been migrated to use `sphinx gallery
<https://sphinx-gallery.readthedocs.io/en/latest/>`__. This allows
better mixing of prose and code in the examples, provides links to
download the examples as both a Python script and a Jupyter notebook,
and improves the thumbnail galleries. The examples have been
Expand Down Expand Up @@ -115,7 +116,7 @@ angular ticks have been modified to be parallel to the grid line. It may also
be useful to rotate tick *labels* to match the boundary. Calling
``ax.tick_params(rotation='auto')`` will enable new behavior: radial tick
labels will be parallel to the circular grid line, and angular tick labels will
be perpendicular to the grid line (i.e., parallel to the outer boundary.)
be perpendicular to the grid line (i.e., parallel to the outer boundary).
Copy link
Contributor

Choose a reason for hiding this comment

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

just above: "enable the new behavior"



``Figure`` class now has ``subplots`` method
Expand All @@ -132,16 +133,13 @@ Metadata savefig keyword argument
:func:`~matplotlib.pyplot.savefig` now accepts ``metadata`` as a keyword
argument. It can be used to store key/value pairs in the image metadata.

Supported formats and backends
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* 'png' with Agg backend
* 'pdf' with PDF backend (see
:func:`~matplotlib.backends.backend_pdf.PdfFile.writeInfoDict` for a list of
supported keywords)
* 'eps' and 'ps' with PS backend (only 'Creator' key is accepted)

Example
~~~~~~~
::

plt.savefig('test.png', metadata={'Software': 'My awesome software'})
Expand Down Expand Up @@ -174,8 +172,8 @@ Reproducible PS, PDF and SVG output
-----------------------------------

The ``SOURCE_DATE_EPOCH`` environment variable can now be used to set
the timestamp value in the PS and PDF outputs. See
https://reproducible-builds.org/specs/source-date-epoch/
the timestamp value in the PS and PDF outputs. See `source date epoch
<https://reproducible-builds.org/specs/source-date-epoch/>`__.

Alternatively, calling ``savefig`` with ``metadata={'creationDate': None}``
will omit the timestamp altogether.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not consistent with the above docs on metadata which say that "Creator" is the only supported key for (e)ps.

Copy link
Member

Choose a reason for hiding this comment

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

Good catch, this only applies to the pdf backend.

Expand Down Expand Up @@ -250,8 +248,8 @@ volumetric model.
Improvements
++++++++++++

CheckButtons widget get_status function
---------------------------------------
CheckButtons widget ``get_status`` function
-------------------------------------------

A :func:`~matplotlib.widgets.CheckButtons.get_status` method has been added to
the :class:`matplotlib.widgets.CheckButtons` class. This ``get_status`` method
Copy link
Contributor

Choose a reason for hiding this comment

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

single backquotes for get_status

`~matplotlib.widgets.CheckButton.get_status`

probably.

Copy link
Member Author

Choose a reason for hiding this comment

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

I only wanted to link it once to not make it overwhelmed by links.

Copy link
Contributor

Choose a reason for hiding this comment

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

it's fine too

Expand Down Expand Up @@ -392,8 +390,8 @@ key arrow.
Colormap reversed method
------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

just below: reversed should not be prefixed with a tilde, otherwise the rendered docs look just weird.


The methods :meth:`~matplotlib.colors.LinearSegmentedColormap.reversed` and
:meth:`~matplotlib.colors.ListedColormap.reversed` return a reversed
The methods :meth:`matplotlib.colors.LinearSegmentedColormap.reversed` and
:meth:`matplotlib.colors.ListedColormap.reversed` return a reversed
instance of the Colormap. This implements a way for any Colormap to be
reversed.

Expand All @@ -419,7 +417,8 @@ cases.
---------------------------------------------------

Bulk setting of tick label rotation is now possible via
:func:`~matplotlib.axis.Axis.set_tick_params` using the ``rotation`` keyword.
:func:`~matplotlib.axis.Axis.set_tick_params` using the ``rotation``
keyword.

Example
~~~~~~~
Expand Down Expand Up @@ -466,13 +465,14 @@ Example
plt.show()


New which Parameter for ``autofmt_xdate``
-----------------------------------------
New ``which`` Parameter for ``autofmt_xdate``
---------------------------------------------

A ``which`` parameter now exists for the method
:func:`~matplotlib.figure.Figure.autofmt_xdate`. This allows a user to format
Copy link
Contributor
@anntzer anntzer Oct 5, 2017

Choose a reason for hiding this comment

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

Just below: I would just say the default is "major" (... for all purposes). It's also not just rotating, but also aligning.

Here and throughough, I would drop the Example subsubsub... heading.

``major``, ``minor`` or ``both`` tick labels selectively. If ``which`` is
``None`` (default) then the method will rotate ``major`` tick labels.
``major``, ``minor`` or ``both`` tick labels selectively. The
default behavior will rotate and align the ``major`` tick labels.


Example
~~~~~~~
Expand Down Expand Up @@ -512,11 +512,11 @@ New keyword argument ``sep`` for EngFormatter
A new ``sep`` keyword argument has been added to
:class:`~matplotlib.ticker.EngFormatter` and provides a means to
define the string that will be used between the value and its
unit. The default string is " ", which preserves the former
unit. The default string is ``" "``, which preserves the former
behavior. Additionally, the separator is now present between the value
and its unit even in the absence of SI prefix. There was formerly a
bug that was causing strings like "3.14V" to be returned instead of
the expected "3.14 V" (with the default behavior).
bug that was causing strings like ``"3.14V"`` to be returned instead of
the expected ``"3.14 V"`` (with the default behavior).

Extend ``MATPLOTLIBRC`` behavior
--------------------------------
Expand Down Expand Up @@ -563,37 +563,25 @@ the API required by a class that is to be used as the ``writer`` in the
:class:`~matplotlib.animation.MovieWriter` class now derives from the new
abstract base class.

Validation of line style rcParams
---------------------------------

Stricter validation
~~~~~~~~~~~~~~~~~~~
Stricter validation of line style rcParams
------------------------------------------

The validation of rcParams that are related to line styles
(``lines.linestyle``, ``boxplot.*.linestyle``, ``grid.linestyle`` and
``contour.negative_linestyle``) now effectively checks that the values
are valid line styles. Strings like ``dashed`` or ``--`` are accepted,
as well as even-length sequences of on-off ink like ``[1, 1.65]``. In
this latter case, the offset value is handled internally and should *not*
be provided by the user.
are valid line styles. Strings like ``'dashed'`` or ``'--'`` are
accepted, as well as even-length sequences of on-off ink like ``[1,
1.65]``. In this latter case, the offset value is handled internally
and should *not* be provided by the user.

The validation is case-insensitive.

Deprecation of the former validators for ``contour.negative_linestyle``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The new validation scheme replaces the former one used for the
``contour.negative_linestyle`` rcParams, that was limited to ``solid``
and ``dashed`` line styles.
``contour.negative_linestyle`` rcParams, that was limited to
``'solid'`` and ``'dashed'`` line styles.

The former public validation functions ``validate_negative_linestyle``
and ``validate_negative_linestyle_legacy`` will be deprecated in 2.1 and
may be removed in 2.3. There are no public functions to replace them.

Examples of use
~~~~~~~~~~~~~~~
::
The validation is case-insensitive.

grid.linestyle : (1, 3) # loosely dotted grid lines
contour.negative_linestyle : dashdot # previously only solid or dashed

pytest
------
Expand Down
0