Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f23cff

Browse files
committed
Move API changes to correct file.
1 parent ff6bb91 commit 6f23cff

File tree

4 files changed

+24
-17
lines changed

4 files changed

+24
-17
lines changed

doc/api/api_changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ added to Matplotlib, see :ref:`whats-new`
3535

3636
api_changes_3.4/*
3737

38+
.. include:: prev_api_changes/api_changes_3.3.1.rst
3839
.. include:: prev_api_changes/api_changes_3.3.0.rst
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,2 @@
11
Deprecations
22
------------
3-
4-
Reverted deprecation of ``num2epoch`` and ``epoch2num``
5-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6-
7-
These two functions were deprecated in 3.3.0, and did not return
8-
an accurate Matplotlib datenum relative to the new Matplotlib epoch
9-
handling (`~.dates.get_epoch` and :rc:`date.epoch`). This version
10-
reverts the deprecation.
11-
12-
Functions ``epoch2num`` and ``dates.julian2num`` use ``date.epoch`` rcParam
13-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14-
15-
Now `~.dates.epoch2num` and (undocumented) ``julian2num`` return floating point
16-
days since `~.dates.get_epoch` as set by :rc:`date.epoch`, instead of
17-
floating point days since the old epoch of "0000-12-31T00:00:00". If
18-
needed, you can translate from the new to old values as
19-
``old = new + mdates.date2num(np.datetime64('0000-12-31'))``
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
API Changes for 3.3.1
2+
=====================
3+
4+
Deprecations
5+
------------
6+
7+
Reverted deprecation of ``num2epoch`` and ``epoch2num``
8+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9+
10+
These two functions were deprecated in 3.3.0, and did not return
11+
an accurate Matplotlib datenum relative to the new Matplotlib epoch
12+
handling (`~.dates.get_epoch` and :rc:`date.epoch`). This version
13+
reverts the deprecation.
14+
15+
Functions ``epoch2num`` and ``dates.julian2num`` use ``date.epoch`` rcParam
16+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17+
18+
Now `~.dates.epoch2num` and (undocumented) ``julian2num`` return floating point
19+
days since `~.dates.get_epoch` as set by :rc:`date.epoch`, instead of
20+
floating point days since the old epoch of "0000-12-31T00:00:00". If
21+
needed, you can translate from the new to old values as
22+
``old = new + mdates.date2num(np.datetime64('0000-12-31'))``

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
'api/prev_api_changes/api_changes_*/*',
6363
# Be sure to update users/whats_new.rst:
6464
'users/prev_whats_new/whats_new_3.3.0.rst',
65+
'users/prev_whats_new/whats_new_3.3.1.rst',
6566
]
6667

6768

0 commit comments

Comments
 (0)