Skip to content

Commit 552e078

Browse files
authored
Merge pull request #21664 from QuLogic/merge-350
Merge 3.5.x into main
2 parents aacc867 + 9b78dad commit 552e078

File tree

8 files changed

+1416
-113
lines changed

8 files changed

+1416
-113
lines changed

doc/api/prev_api_changes/api_changes_3.5.0/deprecations.rst

+4
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ Miscellaneous deprecations
269269
- ``cm.LUTSIZE`` is deprecated. Use :rc:`image.lut` instead. This value only
270270
affects colormap quantization levels for default colormaps generated at
271271
module import time.
272+
- ``Collection.__init__`` previously ignored *transOffset* without *offsets* also
273+
being specified. In the future, *transOffset* will begin having an effect
274+
regardless of *offsets*. In the meantime, if you wish to set *transOffset*,
275+
call `.Collection.set_offset_transform` explicitly.
272276
- ``Colorbar.patch`` is deprecated; this attribute is not correctly updated
273277
anymore.
274278
- ``ContourLabeler.get_label_width`` is deprecated.

doc/users/github_stats.rst

+1,266-107
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
.. _github-stats-3-4-3:
2+
3+
GitHub statistics for Matpltlib 3.4.3
4+
=====================================
5+
6+
GitHub statistics for 2021/05/08 - 2021/08/12 (tag: v3.4.2)
7+
8+
These lists are automatically generated, and may be incomplete or contain duplicates.
9+
10+
We closed 22 issues and merged 69 pull requests.
11+
The full list can be seen `on GitHub <https://github.com/matplotlib/matplotlib/milestone/64?closed=1>`__
12+
13+
The following 20 authors contributed 95 commits.
14+
15+
* Antony Lee
16+
* David Stansby
17+
* Diego
18+
* Diego Leal Petrola
19+
* Diego Petrola
20+
* Elliott Sales de Andrade
21+
* Eric Firing
22+
* Frank Sauerburger
23+
* Greg Lucas
24+
* Ian Hunt-Isaak
25+
* Jash Shah
26+
* Jody Klymak
27+
* Jouni K. Seppänen
28+
* Michał Górny
29+
* sandipanpanda
30+
* Slava Ostroukh
31+
* Thomas A Caswell
32+
* Tim Hoffmann
33+
* Viacheslav Ostroukh
34+
* Xianxiang Li
35+
36+
GitHub issues and pull requests:
37+
38+
Pull Requests (69):
39+
40+
* :ghpull:`20830`: Backport PR #20826 on branch v3.4.x (Fix clear of Axes that are shared.)
41+
* :ghpull:`20826`: Fix clear of Axes that are shared.
42+
* :ghpull:`20823`: Backport PR #20817 on branch v3.4.x (Make test_change_epoch more robust.)
43+
* :ghpull:`20817`: Make test_change_epoch more robust.
44+
* :ghpull:`20820`: Backport PR #20771 on branch v3.4.x (FIX: tickspacing for subfigures)
45+
* :ghpull:`20771`: FIX: tickspacing for subfigures
46+
* :ghpull:`20777`: FIX: dpi and scatter for subfigures now correct
47+
* :ghpull:`20787`: Backport PR #20786 on branch v3.4.x (Fixed typo in _constrained_layout.py (#20782))
48+
* :ghpull:`20786`: Fixed typo in _constrained_layout.py (#20782)
49+
* :ghpull:`20763`: Backport PR #20761 on branch v3.4.x (Fix suplabel autopos)
50+
* :ghpull:`20761`: Fix suplabel autopos
51+
* :ghpull:`20751`: Backport PR #20748 on branch v3.4.x (Ensure _static directory exists before copying CSS.)
52+
* :ghpull:`20748`: Ensure _static directory exists before copying CSS.
53+
* :ghpull:`20713`: Backport PR #20710 on branch v3.4.x (Fix tests with Inkscape 1.1.)
54+
* :ghpull:`20687`: Enable PyPy wheels for v3.4.x
55+
* :ghpull:`20710`: Fix tests with Inkscape 1.1.
56+
* :ghpull:`20696`: Backport PR #20662 on branch v3.4.x (Don't forget to disable autoscaling after interactive zoom.)
57+
* :ghpull:`20662`: Don't forget to disable autoscaling after interactive zoom.
58+
* :ghpull:`20683`: Backport PR #20645 on branch v3.4.x (Fix leak if affine_transform is passed invalid vertices.)
59+
* :ghpull:`20645`: Fix leak if affine_transform is passed invalid vertices.
60+
* :ghpull:`20642`: Backport PR #20629 on branch v3.4.x (Add protection against out-of-bounds read in ttconv)
61+
* :ghpull:`20643`: Backport PR #20597 on branch v3.4.x
62+
* :ghpull:`20629`: Add protection against out-of-bounds read in ttconv
63+
* :ghpull:`20597`: Fix TTF headers for type 42 stix font
64+
* :ghpull:`20624`: Backport PR #20609 on branch v3.4.x (FIX: fix figbox deprecation)
65+
* :ghpull:`20609`: FIX: fix figbox deprecation
66+
* :ghpull:`20594`: Backport PR #20590 on branch v3.4.x (Fix class docstrings for Norms created from Scales.)
67+
* :ghpull:`20590`: Fix class docstrings for Norms created from Scales.
68+
* :ghpull:`20587`: Backport PR #20584: FIX: do not simplify path in LineCollection.get_s…
69+
* :ghpull:`20584`: FIX: do not simplify path in LineCollection.get_segments
70+
* :ghpull:`20578`: Backport PR #20511 on branch v3.4.x (Fix calls to np.ma.masked_where)
71+
* :ghpull:`20511`: Fix calls to np.ma.masked_where
72+
* :ghpull:`20568`: Backport PR #20565 on branch v3.4.x (FIX: PILLOW asarray bug)
73+
* :ghpull:`20566`: Backout pillow=8.3.0 due to a crash
74+
* :ghpull:`20565`: FIX: PILLOW asarray bug
75+
* :ghpull:`20503`: Backport PR #20488 on branch v3.4.x (FIX: Include 0 when checking lognorm vmin)
76+
* :ghpull:`20488`: FIX: Include 0 when checking lognorm vmin
77+
* :ghpull:`20483`: Backport PR #20480 on branch v3.4.x (Fix str of empty polygon.)
78+
* :ghpull:`20480`: Fix str of empty polygon.
79+
* :ghpull:`20478`: Backport PR #20473 on branch v3.4.x (_GSConverter: handle stray 'GS' in output gracefully)
80+
* :ghpull:`20473`: _GSConverter: handle stray 'GS' in output gracefully
81+
* :ghpull:`20456`: Backport PR #20453 on branch v3.4.x (Remove ``Tick.apply_tickdir`` from 3.4 deprecations.)
82+
* :ghpull:`20441`: Backport PR #20416 on branch v3.4.x (Fix missing Patch3DCollection._z_markers_idx)
83+
* :ghpull:`20416`: Fix missing Patch3DCollection._z_markers_idx
84+
* :ghpull:`20417`: Backport PR #20395 on branch v3.4.x (Pathing issue)
85+
* :ghpull:`20395`: Pathing issue
86+
* :ghpull:`20404`: Backport PR #20403: FIX: if we have already subclassed mixin class ju…
87+
* :ghpull:`20403`: FIX: if we have already subclassed mixin class just return
88+
* :ghpull:`20383`: Backport PR #20381 on branch v3.4.x (Prevent corrections and completions in search field)
89+
* :ghpull:`20307`: Backport PR #20154 on branch v3.4.x (ci: Bump Ubuntu to 18.04 LTS.)
90+
* :ghpull:`20285`: Backport PR #20275 on branch v3.4.x (Fix some examples that are skipped in docs build)
91+
* :ghpull:`20275`: Fix some examples that are skipped in docs build
92+
* :ghpull:`20267`: Backport PR #20265 on branch v3.4.x (Legend edgecolor face)
93+
* :ghpull:`20265`: Legend edgecolor face
94+
* :ghpull:`20260`: Fix legend edgecolor face
95+
* :ghpull:`20259`: Backport PR #20248 on branch v3.4.x (Replace pgf image-streaming warning by error.)
96+
* :ghpull:`20248`: Replace pgf image-streaming warning by error.
97+
* :ghpull:`20241`: Backport PR #20212 on branch v3.4.x (Update span_selector.py)
98+
* :ghpull:`20212`: Update span_selector.py
99+
* :ghpull:`19980`: Tidy up deprecation messages in ``_subplots.py``
100+
* :ghpull:`20234`: Backport PR #20225 on branch v3.4.x (FIX: correctly handle ax.legend(..., legendcolor='none'))
101+
* :ghpull:`20225`: FIX: correctly handle ax.legend(..., legendcolor='none')
102+
* :ghpull:`20232`: Backport PR #19636 on branch v3.4.x (Correctly check inaxes for multicursor)
103+
* :ghpull:`20228`: Backport PR #19849 on branch v3.4.x (FIX DateFormatter for month names when usetex=True)
104+
* :ghpull:`19849`: FIX DateFormatter for month names when usetex=True
105+
* :ghpull:`20154`: ci: Bump Ubuntu to 18.04 LTS.
106+
* :ghpull:`20186`: Backport PR #19975 on branch v3.4.x (CI: remove workflow to push commits to macpython/matplotlib-wheels)
107+
* :ghpull:`19975`: CI: remove workflow to push commits to macpython/matplotlib-wheels
108+
* :ghpull:`19636`: Correctly check inaxes for multicursor
109+
110+
Issues (22):
111+
112+
* :ghissue:`20219`: Regression: undocumented change of behaviour in mpl 3.4.2 with axis ticks direction
113+
* :ghissue:`20721`: ax.clear() adds extra ticks, un-hides shared-axis tick labels
114+
* :ghissue:`20765`: savefig re-scales xticks and labels of some (but not all) subplots
115+
* :ghissue:`20782`: [Bug]: _supylabel get_in_layout() typo?
116+
* :ghissue:`20747`: [Bug]: _copy_css_file assumes that the _static directory already exists
117+
* :ghissue:`20617`: tests fail with new inkscape
118+
* :ghissue:`20519`: Toolbar zoom doesn't change autoscale status for versions 3.2.0 and above
119+
* :ghissue:`20628`: Out-of-bounds read leads to crash or broken TrueType fonts
120+
* :ghissue:`20612`: Broken EPS for Type 42 STIX
121+
* :ghissue:`19982`: regression for 3.4.x - ax.figbox replacement incompatible to all version including 3.3.4
122+
* :ghissue:`19938`: unuseful deprecation warning figbox
123+
* :ghissue:`16400`: Inconsistent behavior between Normalizers when input is Dataframe
124+
* :ghissue:`20583`: Lost class descriptions since 3.4 docs
125+
* :ghissue:`20551`: set_segments(get_segments()) makes lines coarse
126+
* :ghissue:`20560`: test_png is failing
127+
* :ghissue:`20487`: test_huge_range_log is failing...
128+
* :ghissue:`20472`: test_backend_pgf.py::test_xelatex[pdf] - ValueError: invalid literal for int() with base 10: b'ate missing from Resources. [...]
129+
* :ghissue:`20328`: Path.intersects_path sometimes returns incorrect values
130+
* :ghissue:`20258`: Using edgecolors='face' with stackplot causes value error when using plt.legend()
131+
* :ghissue:`20200`: examples/widgets/span_selector.py is brittle
132+
* :ghissue:`20231`: MultiCursor bug
133+
* :ghissue:`19836`: Month names not set as text when using usetex

doc/users/release_notes.rst

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Version 3.5
1616

1717
prev_whats_new/whats_new_3.5.0.rst
1818
../api/prev_api_changes/api_changes_3.5.0.rst
19+
github_stats.rst
1920

2021
Version 3.4
2122
===========

doc/users/release_notes_next.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Next version
24
============
35
.. toctree::

lib/matplotlib/_mathtext.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import numpy as np
1515
from pyparsing import (
16-
Combine, Empty, FollowedBy, Forward, Group, Literal, oneOf, OneOrMore,
16+
Combine, Empty, Forward, Group, Literal, oneOf, OneOrMore,
1717
Optional, ParseBaseException, ParseFatalException, ParserElement,
1818
ParseResults, QuotedString, Regex, StringEnd, Suppress, White, ZeroOrMore)
1919

@@ -2046,7 +2046,7 @@ def __init__(self):
20462046
p.accentprefixed <<= Suppress(p.bslash) + oneOf(self._accentprefixed)
20472047
p.symbol_name <<= (
20482048
Combine(p.bslash + oneOf(list(tex2uni)))
2049-
+ FollowedBy(Regex("[^A-Za-z]").leaveWhitespace() | StringEnd())
2049+
+ Suppress(Regex("(?=[^A-Za-z]|$)").leaveWhitespace())
20502050
)
20512051
p.symbol <<= (p.single_symbol | p.symbol_name).leaveWhitespace()
20522052

lib/matplotlib/tests/test_mathtext.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ def test_fontinfo():
250250
(r'$\leftF$', r'Expected a delimiter'),
251251
(r'$\rightF$', r'Unknown symbol: \rightF'),
252252
(r'$\left(\right$', r'Expected a delimiter'),
253-
(r'$\left($', r'Expected "\right"'),
253+
# PyParsing 2 uses double quotes, PyParsing 3 uses single quotes and an
254+
# extra backslash.
255+
(r'$\left($', re.compile(r'Expected ("|\'\\)\\right["\']')),
254256
(r'$\dfrac$', r'Expected \dfrac{num}{den}'),
255257
(r'$\dfrac{}{}$', r'Expected \dfrac{num}{den}'),
256258
(r'$\overset$', r'Expected \overset{body}{annotation}'),
@@ -281,8 +283,8 @@ def test_fontinfo():
281283
)
282284
def test_mathtext_exceptions(math, msg):
283285
parser = mathtext.MathTextParser('agg')
284-
285-
with pytest.raises(ValueError, match=re.escape(msg)):
286+
match = re.escape(msg) if isinstance(msg, str) else msg
287+
with pytest.raises(ValueError, match=match):
286288
parser.parse(math)
287289

288290

setupext.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,9 @@ def do_custom_build(self, env):
591591
(f'https://downloads.sourceforge.net/project/freetype'
592592
f'/freetype2/{LOCAL_FREETYPE_VERSION}/{tarball}'),
593593
(f'https://download.savannah.gnu.org/releases/freetype'
594-
f'/{tarball}')
594+
f'/{tarball}'),
595+
(f'https://download.savannah.gnu.org/releases/freetype'
596+
f'/freetype-old/{tarball}')
595597
],
596598
sha=LOCAL_FREETYPE_HASH,
597599
dirname=f'freetype-{LOCAL_FREETYPE_VERSION}',

0 commit comments

Comments
 (0)