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

Skip to content

Commit 3bfd1d0

Browse files
Changes in setupext
2 parents 7fd5a02 + 36bc7da commit 3bfd1d0

113 files changed

Lines changed: 2541 additions & 1530 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ apt-run: &apt-install
2727
graphviz \
2828
fonts-crosextra-carlito \
2929
fonts-freefont-otf \
30-
fonts-humor-sans
30+
fonts-humor-sans \
31+
optipng
3132
3233
fonts-run: &fonts-install
3334
name: Install custom fonts

.flake8

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,8 @@ per-file-ignores =
6363
lib/matplotlib/mathtext.py: E221, E251
6464
lib/matplotlib/pylab.py: F401, F403
6565
lib/matplotlib/pyplot.py: F401, F811
66-
lib/matplotlib/rcsetup.py: E501
6766
lib/matplotlib/style/__init__.py: F401
6867
lib/matplotlib/testing/conftest.py: F401
69-
lib/matplotlib/testing/compare.py: F401
7068
lib/matplotlib/testing/decorators.py: F401
7169
lib/matplotlib/tests/conftest.py: F401
7270
lib/matplotlib/tests/test_backend_qt.py: F401

doc/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ clean:
2424
rm -rf "$(SOURCEDIR)/savefig"
2525
rm -rf "$(SOURCEDIR)/sphinxext/__pycache__"
2626

27+
show:
28+
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(shell pwd)/build/html/index.html')"
29+
2730
# Catch-all target: route all unknown targets to Sphinx using the new
2831
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
2932
%: Makefile

doc/_static/mpl.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,6 @@ div.documentwrapper {
189189
}
190190
*/
191191

192-
div.clearer {
193-
clear: both;
194-
}
195-
196192
div.related h3 {
197193
display: none;
198194
}

doc/_templates/autosummary.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@
2121
creates no example file for those (sphinx-gallery/sphinx-gallery#365)
2222
2323
{% else %}
24-
.. include:: {{module}}.{{objname}}.examples
25-
26-
.. raw:: html
27-
28-
<div class="clearer"></div>
24+
.. minigallery:: {{module}}.{{objname}}
25+
:add-heading:
2926

3027
{% endif %}
3128
{% endif %}

doc/_templates/function.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@
55

66
.. autofunction:: {{ objname }}
77

8-
.. include:: {{module}}.{{objname}}.examples
9-
10-
.. raw:: html
11-
12-
<div class="clearer"></div>
8+
.. minigallery:: {{module}}.{{objname}}
9+
:add-heading:

doc/api/animation_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Examples
135135

136136
../gallery/animation/animate_decay
137137
../gallery/animation/bayes_update
138-
../gallery/animation/double_pendulum_sgskip
138+
../gallery/animation/double_pendulum
139139
../gallery/animation/animated_histogram
140140
../gallery/animation/rain
141141
../gallery/animation/random_walk

doc/api/api_changes_3.3/behaviour.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,5 +291,13 @@ larger GUIs, where Matplotlib may control the toolbar but not the status bar.
291291
:rc:`text.hinting` now supports the values "default", "no_autohint",
292292
"force_autohint", and "no_hinting", which directly map to the FreeType flags
293293
FT_LOAD_DEFAULT, etc. The old synonyms (respectively "either", "native",
294-
"auto", and "none") are still supported. To get normalized values, use
295-
`.backend_agg.get_hinting_flag`, which returns integer flag values.
294+
"auto", and "none") are still supported, but their use is discouraged. To get
295+
normalized values, use `.backend_agg.get_hinting_flag`, which returns integer
296+
flag values.
297+
298+
`.cbook.get_sample_data` auto-loads numpy arrays
299+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
300+
When `.cbook.get_sample_data` is used to load a npy or npz file and the
301+
keyword-only parameter ``np_load`` is True, the file is automatically loaded
302+
using `numpy.load`. ``np_load`` defaults to False for backwards compatibility,
303+
but will become True in a later release.

doc/api/api_changes_3.3/deprecations.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ The following validators, defined in `.rcsetup`, are deprecated:
238238
``validate_axes_titlelocation``, ``validate_toolbar``,
239239
``validate_ps_papersize``, ``validate_legend_loc``,
240240
``validate_bool_maybe_none``, ``validate_hinting``,
241-
``validate_movie_writers``, ``validate_webagg_address``.
241+
``validate_movie_writers``, ``validate_webagg_address``,
242+
``validate_nseq_float``, ``validate_nseq_int``.
242243
To test whether an rcParam value would be acceptable, one can test e.g. ``rc =
243244
RcParams(); rc[k] = v`` raises an exception.
244245

@@ -406,6 +407,16 @@ what the docs stated). They are deprecated; if you write a backend
406407
which needs to customize such events, please directly override
407408
``press_pan``/``press_zoom``/``release_pan``/``release_zoom`` instead.
408409

410+
FigureCanvasGTK3._renderer_init
411+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
412+
Overriding this method to initialize renderers for GTK3 canvases is deprecated.
413+
Instead, the renderer should be initialized in the ``__init__`` method of the
414+
subclass (which should call the base-class' ``__init__`` as appropriate). To
415+
keep back-compatibility with earlier versions of Matplotlib (which *required*
416+
``_renderer_init`` to be overridden), a fully empty implementation (``def
417+
_renderer_init(self): pass``) may be kept and will not trigger the deprecation
418+
warning.
419+
409420
Path helpers in :mod:`.bezier`
410421
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
411422

@@ -545,7 +556,7 @@ The ``cbid`` and ``locator`` attribute are deprecated. Use
545556
``qt_compat.is_pyqt5``
546557
~~~~~~~~~~~~~~~~~~~~~~
547558
This function is deprecated in prevision of the future release of PyQt6. The
548-
Qt version can be checked using ``QtCore.QT_VERSION_STR``.
559+
Qt version can be checked using ``QtCore.qVersion()``.
549560

550561
Reordering of parameters by `.Artist.set`
551562
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,14 @@ def _check_dependencies():
111111
missing_references_warn_unused_ignores = False
112112

113113
intersphinx_mapping = {
114-
'python': ('https://docs.python.org/3', None),
114+
'Pillow': ('https://pillow.readthedocs.io/en/stable/', None),
115115
'cycler': ('https://matplotlib.org/cycler', None),
116116
'dateutil': ('https://dateutil.readthedocs.io/en/stable/', None),
117+
'ipykernel': ('https://ipykernel.readthedocs.io/en/latest/', None),
117118
'numpy': ('https://docs.scipy.org/doc/numpy/', None),
118119
'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
119-
'Pillow': ('https://pillow.readthedocs.io/en/stable/', None),
120120
'pytest': ('https://pytest.org/en/stable', None),
121+
'python': ('https://docs.python.org/3', None),
121122
'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
122123
}
123124

@@ -138,6 +139,8 @@ def _check_dependencies():
138139
'within_subsection_order': gallery_order.subsectionorder,
139140
'remove_config_comments': True,
140141
'min_reported_time': 1,
142+
'compress_images': ('thumbnails', 'images'),
143+
'matplotlib_animations': True,
141144
}
142145

143146
plot_gallery = 'True'

0 commit comments

Comments
 (0)