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

Skip to content

Commit 1cdeea3

Browse files
committed
autoscaling ax.arrow call
1 parent 8c18a37 commit 1cdeea3

File tree

879 files changed

+43655
-100981
lines changed

Some content is hidden

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

879 files changed

+43655
-100981
lines changed

.appveyor.yml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ clone_depth: 50
1414
environment:
1515

1616
global:
17+
PYTHONFAULTHANDLER: 1
1718
PYTHONIOENCODING: UTF-8
1819
PYTEST_ARGS: -raR --numprocesses=auto --timeout=300 --durations=25
19-
--cov-report= --cov=lib -m "not network" --log-level=DEBUG
20+
--cov-report= --cov=lib --log-level=DEBUG
2021

2122
matrix:
22-
# theoretically the CONDA_INSTALL_LOCN could be only two: one for 32bit,
23-
# one for 64bit because we construct envs anyway. But using one for the
24-
# right python version is hopefully making it fast due to package caching.
23+
# In theory we could use a single CONDA_INSTALL_LOCN because we construct
24+
# the envs anyway. But using one for the right python version hopefully
25+
# making things faster due to package caching.
2526
- PYTHON_VERSION: "3.6"
2627
CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
2728
TEST_ALL: "no"
@@ -47,43 +48,30 @@ init:
4748
install:
4849
- set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
4950
- set PYTHONUNBUFFERED=1
50-
# for msinttypes and newer stuff
5151
- conda config --set always_yes true
5252
- conda update --all
5353
- conda config --set show_channel_urls yes
5454
- conda config --prepend channels conda-forge
5555
# this is now the downloaded conda...
56+
- activate
5657
- conda info -a
5758

5859
# For building, use a new environment which only includes the requirements for mpl
59-
# same things as the requirements in ci/conda_recipe/meta.yaml
6060
# if conda-forge gets a new pyqt, it might be nice to install it as well to have more backends
6161
# https://github.com/conda-forge/conda-forge.github.io/issues/157#issuecomment-223536381
62-
#
6362
- conda create -q -n test-environment python=%PYTHON_VERSION%
64-
msinttypes freetype=2.6 "libpng>=1.6.21,<1.7" zlib=1.2 tk=8.5
65-
pip setuptools numpy pandas sphinx tornado
63+
freetype=2.6 "libpng>=1.6.21,<1.7" zlib=1.2 tk=8.5
64+
pip setuptools numpy sphinx tornado
6665
- activate test-environment
6766
- echo %PYTHON_VERSION% %TARGET_ARCH%
68-
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
69-
- pip install -q "pytest>=3.4" "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout pytest-xdist
67+
- pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis36.txt
7068

7169
# Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
7270
# https://github.com/matplotlib/matplotlib/issues/9176
7371
- python -c "import sys; sys.exit(not (3,) < sys.version_info < (3,6,3))" && (
7472
curl -sL https://github.com/python/cpython/pull/1224.patch |
7573
patch -fsup 1 -d %CONDA_PREFIX% ) || cmd /c "exit /b 0"
7674

77-
# Let the install prefer the static builds of the libs
78-
- set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib
79-
- mkdir lib || cmd /c "exit /b 0"
80-
- copy /y %LIBRARY_LIB%\zlibstatic.lib lib\z.lib
81-
- copy /y %LIBRARY_LIB%\libpng_static.lib lib\png.lib
82-
# These z.lib / png.lib are not static versions but files which end up as
83-
# dependencies to the dll file. This is fine for the conda build, but not here
84-
# and for the wheels
85-
- del %LIBRARY_LIB%\png.lib
86-
- del %LIBRARY_LIB%\z.lib
8775
# enables the local freetype build
8876
- set MPLLOCALFREETYPE=1
8977
# Show the installed packages + versions
@@ -95,9 +83,9 @@ test_script:
9583
- pip install -ve .
9684
# these should show no z, png, or freetype dll...
9785
- set "DUMPBIN=%VS140COMNTOOLS%\..\..\VC\bin\dumpbin.exe"
98-
- '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
99-
- '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd | findstr z.*.dll && exit /b 1 || exit /b 0'
100-
- '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd | findstr png.*.dll && exit /b 1 || exit /b 0'
86+
- 'if x%MPLSTATICBUILD% == xTrue "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
87+
- 'if x%MPLSTATICBUILD% == xTrue "%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd | findstr z.*.dll && exit /b 1 || exit /b 0'
88+
- 'if x%MPLSTATICBUILD% == xTrue "%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd | findstr png.*.dll && exit /b 1 || exit /b 0'
10189

10290
# this are optional dependencies so that we don't skip so many tests...
10391
- if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape miktex pillow
@@ -114,6 +102,7 @@ test_script:
114102
after_test:
115103
# After the tests were a success, build wheels with the static libs
116104
# Hide the output, the copied files really clutter the build log...
105+
- set MPLSTATICBUILD=True
117106
- 'python setup.py bdist_wheel > NUL:'
118107
- dir dist\
119108
- echo finished...

.circleci/config.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@ apt-run: &apt-install
1414
sudo apt-get -qq update
1515
sudo apt-get install -y \
1616
inkscape \
17-
libav-tools \
17+
ffmpeg \
1818
dvipng \
19-
pgf \
2019
lmodern \
2120
cm-super \
2221
texlive-latex-base \
2322
texlive-latex-extra \
2423
texlive-fonts-recommended \
2524
texlive-latex-recommended \
25+
texlive-pictures \
2626
texlive-xetex \
2727
graphviz \
2828
libgeos-dev \
29-
otf-freefont
29+
fonts-crosextra-carlito \
30+
fonts-freefont-otf
3031
3132
fonts-run: &fonts-install
3233
name: Install custom fonts
@@ -74,7 +75,9 @@ mpl-run: &mpl-install
7475

7576
doc-run: &doc-build
7677
name: Build documentation
77-
command: make html O=-T
78+
command: |
79+
make html O=-T
80+
rm -r build/html/_sources
7881
working_directory: doc
7982

8083
doc-bundle-run: &doc-bundle
@@ -100,7 +103,7 @@ jobs:
100103
- run:
101104
<<: *deps-install
102105
environment:
103-
NUMPY_VERSION: "==1.11.0"
106+
NUMPY_VERSION: "==1.13.0"
104107
- run: *mpl-install
105108

106109
- run: *doc-build

.flake8

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,24 @@ ignore =
33
# Normal default
44
E121,E123,E126,E226,E24,E704,W503,W504,
55
# Additional ignores:
6-
E111, E114, E115, E116, E122, E124, E125, E127, E128, E129, E131,
6+
E122, E125, E127, E128, E129, E131,
77
E265, E266,
88
E305, E306,
99
E722, E741,
1010
F401, F403, F811, F841,
1111
# Some new flake8 ignores:
1212
N801, N802, N803, N806, N812,
13+
# pydocstyle
14+
D100, D101, D102, D103, D104, D105, D106, D107,
15+
D200, D202, D203, D204, D205, D207, D209, D212, D213,
16+
D300, D301
17+
D400, D401, D402, D403, D413,
1318

1419
exclude =
1520
.git
1621
build
22+
doc/gallery
23+
doc/tutorials
1724
# External files.
1825
versioneer.py
1926
tools/gh_api.py
@@ -25,41 +32,21 @@ per-file-ignores =
2532
setup.py: E402
2633
setupext.py: E501
2734

28-
tools/compare_backend_driver_results.py: E501
2935
tools/subset.py: E221, E251, E261, E302, E501
3036

3137
lib/matplotlib/_cm.py: E202, E203, E302
3238
lib/matplotlib/_mathtext_data.py: E203, E261
33-
lib/matplotlib/backends/_backend_tk.py: E501
34-
lib/matplotlib/backends/backend_agg.py: E302
35-
lib/matplotlib/backends/backend_cairo.py: E203, E221, E402
36-
lib/matplotlib/backends/backend_gtk3.py: E203, E221, E225, E251, E501
37-
lib/matplotlib/backends/backend_pgf.py: E731
38-
lib/matplotlib/backends/qt_editor/_formlayout.py: E501
39-
lib/matplotlib/font_manager.py: E203, E221, E251, E501
40-
lib/matplotlib/fontconfig_pattern.py: E201, E203, E221, E222, E225
41-
lib/matplotlib/mathtext.py: E201, E202, E203, E211, E221, E222, E225, E251, E301, E402
42-
lib/matplotlib/projections/geo.py: E203, E221, E502
43-
lib/matplotlib/pylab.py: E501
39+
lib/matplotlib/font_manager.py: E221, E251, E501
40+
lib/matplotlib/mathtext.py: E221, E251
4441
lib/matplotlib/rcsetup.py: E501
4542
lib/matplotlib/tests/test_mathtext.py: E501
46-
lib/matplotlib/transforms.py: E201, E202, E203, E501
43+
lib/matplotlib/transforms.py: E201, E202, E203
4744
lib/matplotlib/tri/triinterpolate.py: E201, E221
48-
lib/matplotlib/type1font.py: E731
4945

50-
lib/mpl_toolkits/axes_grid1/axes_divider.py: E402, E501
5146
lib/mpl_toolkits/axes_grid1/axes_size.py: E272
52-
lib/mpl_toolkits/axes_grid1/colorbar.py: E225, E501
5347
lib/mpl_toolkits/axisartist/angle_helper.py: E221
54-
lib/mpl_toolkits/axisartist/clip_path.py: E225
55-
lib/mpl_toolkits/axisartist/floating_axes.py: E225, E402, E501
56-
lib/mpl_toolkits/axisartist/grid_helper_curvelinear.py: E225, E501
5748

5849
doc/conf.py: E402, E501
59-
doc/sphinxext/github.py: E302, E501
60-
doc/sphinxext/math_symbol_table.py: E302, E501
61-
doc/sphinxext/skip_deprecated.py: E302
62-
doc/users/generate_credits.py: E302, E501
6350
tutorials/advanced/path_tutorial.py: E402, E501
6451
tutorials/advanced/patheffects_guide.py: E402, E501
6552
tutorials/advanced/transforms_tutorial.py: E402, E501
@@ -86,6 +73,7 @@ per-file-ignores =
8673

8774
examples/animation/frame_grabbing_sgskip.py: E402
8875
examples/axes_grid1/inset_locator_demo.py: E402
76+
examples/axes_grid1/scatter_hist_locatable_axes.py: E401, E402
8977
examples/axisartist/demo_curvelinear_grid.py: E402
9078
examples/color/color_by_yvalue.py: E402
9179
examples/color/color_cycle_default.py: E402
@@ -110,6 +98,7 @@ per-file-ignores =
11098
examples/images_contours_and_fields/contourf_hatching.py: E402
11199
examples/images_contours_and_fields/contourf_log.py: E402
112100
examples/images_contours_and_fields/demo_bboximage.py: E402
101+
examples/images_contours_and_fields/image_antialiasing.py: E402
113102
examples/images_contours_and_fields/image_clip_path.py: E402
114103
examples/images_contours_and_fields/image_demo.py: E402
115104
examples/images_contours_and_fields/image_masked.py: E402
@@ -137,15 +126,19 @@ per-file-ignores =
137126
examples/images_contours_and_fields/triplot_demo.py: E201, E402
138127
examples/images_contours_and_fields/watermark_image.py: E402
139128
examples/lines_bars_and_markers/errorbar_limits_simple.py: E402
129+
examples/lines_bars_and_markers/fill.py: E402
140130
examples/lines_bars_and_markers/fill_between_demo.py: E402
141131
examples/lines_bars_and_markers/filled_step.py: E402
132+
examples/lines_bars_and_markers/horizontal_barchart_distribution.py: E402
142133
examples/lines_bars_and_markers/joinstyle.py: E402
134+
examples/lines_bars_and_markers/scatter_hist.py: E402
143135
examples/lines_bars_and_markers/scatter_piecharts.py: E402
144136
examples/lines_bars_and_markers/scatter_with_legend.py: E402
145137
examples/lines_bars_and_markers/span_regions.py: E402
146138
examples/lines_bars_and_markers/stem_plot.py: E402
147139
examples/lines_bars_and_markers/step_demo.py: E402
148140
examples/lines_bars_and_markers/timeline.py: E402
141+
examples/lines_bars_and_markers/xcorr_acorr_demo.py: E402
149142
examples/misc/agg_buffer.py: E402
150143
examples/misc/anchored_artists.py: E501
151144
examples/misc/contour_manual.py: E501
@@ -188,7 +181,6 @@ per-file-ignores =
188181
examples/pyplots/text_commands.py: E231, E402
189182
examples/pyplots/text_layout.py: E231, E402
190183
examples/pyplots/whats_new_1_subplot3d.py: E402
191-
examples/pyplots/whats_new_98_4_fancy.py: E302, E402
192184
examples/pyplots/whats_new_98_4_fill_between.py: E225, E402
193185
examples/pyplots/whats_new_98_4_legend.py: E228, E402
194186
examples/pyplots/whats_new_99_axes_grid.py: E402
@@ -225,15 +217,17 @@ per-file-ignores =
225217
examples/style_sheets/plot_solarizedlight2.py: E501
226218
examples/subplots_axes_and_figures/axes_margins.py: E402
227219
examples/subplots_axes_and_figures/axes_zoom_effect.py: E402
220+
examples/subplots_axes_and_figures/custom_figure_class.py: E402
228221
examples/subplots_axes_and_figures/demo_constrained_layout.py: E402
229222
examples/subplots_axes_and_figures/demo_tight_layout.py: E402
230223
examples/subplots_axes_and_figures/secondary_axis.py: E402
231224
examples/subplots_axes_and_figures/two_scales.py: E402
232225
examples/subplots_axes_and_figures/zoom_inset_axes.py: E402
233226
examples/tests/backend_driver_sgskip.py: E402, E501
234227
examples/text_labels_and_annotations/annotation_demo.py: E501
235-
examples/text_labels_and_annotations/demo_text_rotation_mode.py: E402
228+
examples/text_labels_and_annotations/demo_text_rotation_mode.py: E402
236229
examples/text_labels_and_annotations/custom_legends.py: E402
230+
examples/text_labels_and_annotations/fancyarrow_demo.py: E402
237231
examples/text_labels_and_annotations/font_family_rc_sgskip.py: E402
238232
examples/text_labels_and_annotations/font_file.py: E402
239233
examples/text_labels_and_annotations/legend.py: E402
@@ -242,7 +236,7 @@ per-file-ignores =
242236
examples/text_labels_and_annotations/tex_demo.py: E402
243237
examples/text_labels_and_annotations/watermark_text.py: E402
244238
examples/ticks_and_spines/auto_ticks.py: E501
245-
examples/ticks_and_spines/date_concise_formatter.py: E402
239+
examples/ticks_and_spines/date_concise_formatter.py: E402
246240
examples/user_interfaces/canvasagg.py: E402
247241
examples/user_interfaces/embedding_in_gtk3_panzoom_sgskip.py: E402
248242
examples/user_interfaces/embedding_in_gtk3_sgskip.py: E402
@@ -257,6 +251,7 @@ per-file-ignores =
257251
examples/user_interfaces/mpl_with_glade3_sgskip.py: E402
258252
examples/user_interfaces/pylab_with_gtk_sgskip.py: E302, E402
259253
examples/user_interfaces/toolmanager_sgskip.py: E402
254+
examples/userdemo/connectionstyle_demo.py: E402
260255
examples/userdemo/custom_boxstyle01.py: E402
261256
examples/userdemo/pgf_preamble_sgskip.py: E402
262257
examples/userdemo/simple_annotate01.py: E501

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* text=auto
2+
*.ppm binary
23
*.svg binary
34
*.svg linguist-language=true
45
lib/matplotlib/_version.py export-subst

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
custom: https://numfocus.salsalabs.org/donate-to-matplotlib/index.html

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ dist
3737
# Egg metadata
3838
*.egg-info
3939
.eggs
40+
# wheel metadata
41+
pip-wheel-metadata/*
4042
# tox testing tool
4143
.tox
4244
setup.cfg
@@ -54,6 +56,8 @@ Thumbs.db
5456
###################################
5557
lib/matplotlib/mpl-data/matplotlib.conf
5658
lib/matplotlib/mpl-data/matplotlibrc
59+
tutorials/intermediate/CL01.png
60+
tutorials/intermediate/CL02.png
5761

5862
# Documentation generated files #
5963
#################################

0 commit comments

Comments
 (0)