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

Skip to content

tutorial on how autoscaling works #17530

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

Closed
wants to merge 905 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
905 commits
Select commit Hold shift + click to select a range
5b213a5
Move "Request a new feature" from How-to to Contributing
timhoffm Jul 5, 2020
1451227
Remove the example "Easily creating subplots"
timhoffm Jul 14, 2020
70e086e
Style cleanup to pyplot.
anntzer Mar 2, 2019
b803891
Merge pull request #17921 from forrestm/Extend-hatch-reference
story645 Jul 14, 2020
ca01a39
Merge pull request #17869 from jklymak/fix-date-rcparam
efiring Jul 15, 2020
b94403b
Merge pull request #17924 from timhoffm/doc-remove-create-subplots-ex…
jklymak Jul 15, 2020
3e790dd
Rewrite the barcode example
timhoffm Jul 12, 2020
deb788d
Merge pull request #13569 from anntzer/pyplot-pep8
QuLogic Jul 15, 2020
187e87b
Merge pull request #17909 from bmcfee/anim-formats-params
QuLogic Jul 15, 2020
5722bd1
Add direct link to 24-bit png file so images tutorial works.
majorwitty Jul 26, 2019
42ce0c7
DOC: Re-order 3.3 what's new changes.
QuLogic Jul 14, 2020
93c7214
Remove unnecessary file save during test.
QuLogic Jul 15, 2020
153813b
Merge pull request #14896 from majorwitty/patch-1
timhoffm Jul 15, 2020
fbfff36
Merge remote-tracking branch 'origin/master' into draw-frame-error-check
johnnyEmpires Jul 15, 2020
c39ba91
Merge pull request #17927 from QuLogic/test-remove-extra-save
dstansby Jul 15, 2020
d89a93d
Merge remote-tracking branch 'origin/master' into draw-frame-error-check
johnnyEmpires Jul 15, 2020
b560513
Merge pull request #17858 from QuLogic/doc-330
story645 Jul 15, 2020
1a45bac
DOC: improve hatch example
jklymak Jul 14, 2020
a1b7862
DOC: update hatch_style_reference
jklymak Jul 15, 2020
11d00b5
BF: ignore CLOSEPOLY after NaN in PathNanRemover
brunobeltran Jul 11, 2020
508350a
Fix drawing zoom rubberband on GTK backends.
QuLogic Jul 10, 2020
660f931
Merge pull request #17929 from jklymak/doc-merged-hatch
timhoffm Jul 15, 2020
8fd1c62
Drop failing test, since it is tested elsewhere.
mpetroff Jul 12, 2020
e216e59
TESTS: ensure removing nan's doesn't break bar
brunobeltran Jul 13, 2020
b975b75
Merge pull request #17877 from QuLogic/gtk3-rubberband
dopplershift Jul 15, 2020
898888a
Don't allow 1D lists as subplot_moasic layout.
timhoffm Jul 15, 2020
b7ba9e4
Merge pull request #17885 from brunobeltran/ignore_closepoly_after_nan
QuLogic Jul 15, 2020
7a4df1a
Force origin='upper' in pyplot.specgram (#17897)
kate-perkins Jul 15, 2020
dc9b353
Merge pull request #17938 from timhoffm/subplot_mosaic_1D_list
jklymak Jul 15, 2020
5a9191b
Merge pull request #17842 from timhoffm/doc-feature-request
jklymak Jul 15, 2020
da01cf8
Fix bug with space between operator and sub / superscripts.
mpetroff Jul 15, 2020
d85adce
Merge pull request #16090 from greglucas/pcolormesh_snapping
jklymak Jul 15, 2020
d894756
DOC: Increase heading level of 3.3 what's new entries.
QuLogic Jul 15, 2020
e6ebe54
DOC: Add trailing slashes to URLs in config.
QuLogic Jul 15, 2020
cea02d3
Merge pull request #17942 from QuLogic/whatsnew-heading
QuLogic Jul 16, 2020
81a560c
Merge pull request #17890 from mpetroff/fix-mathtext-operator-spacing
QuLogic Jul 16, 2020
1808472
test code clean up
johnnyEmpires Jul 16, 2020
a37e61e
test code clean up
johnnyEmpires Jul 16, 2020
a413e43
Deprecate hatch patterns with invalid values.
QuLogic Jul 15, 2020
4da5274
DOC: Use hatch style reference in Collection docstring.
QuLogic Jul 15, 2020
38c41ae
Merge pull request #17922 from timhoffm/doc-barcode
QuLogic Jul 17, 2020
e5454a3
Merge pull request #17926 from QuLogic/warn-hatch
dstansby Jul 17, 2020
c6e2fad
examples: fix a few deprecated subplot specifiers.
MichaelGrupp Jul 17, 2020
f782a82
Merge pull request #17949 from MichaelGrupp/fix-subplot-deprecated
QuLogic Jul 17, 2020
577da78
Sync Cairo's usetex measurement with base class.
QuLogic Jul 16, 2020
b89cf05
typo in 3.3 whatsnew
amueller Jul 17, 2020
56d48cf
Remove another overspecified latex geometry.
QuLogic Jul 17, 2020
13fe458
ENH: Add version check for mac sdk version
dopplershift Jul 17, 2020
bb9d11d
Merge pull request #17953 from amueller/vision
QuLogic Jul 18, 2020
98961f6
Merge pull request #12443 from anntzer/colorbar-mappable-axes
QuLogic Jul 18, 2020
56e87ef
Tighten a bit the RendererAgg API.
anntzer Jun 28, 2020
c3e1c1b
Directly remove the C-level get_content_extents.
anntzer Jul 3, 2020
bc9eb96
Merge pull request #17788 from anntzer/rgbamin
timhoffm Jul 18, 2020
852ec17
Merge pull request #17948 from QuLogic/cairo-usetex
timhoffm Jul 18, 2020
3b097c6
Merge pull request #17954 from QuLogic/ps-geom
anntzer Jul 18, 2020
4723dab
Merge pull request #17699 from johnnyEmpires/draw-frame-error-check
jklymak Jul 18, 2020
ff368f9
Protect use of newer macOS APIs
dopplershift Jul 18, 2020
8ad6a3d
Only make the unguarded API warning an error
dopplershift Jul 18, 2020
947db3e
Simplify projection-of-point-on-polyline in contour.py.
anntzer Jun 30, 2020
29d38c2
add title to pause/resume example
DCtheTall Jul 19, 2020
8bd12db
TST: Ignore deprecations when switching backends.
QuLogic Jul 19, 2020
4c72495
Update blitting.py
eterny13 Jul 19, 2020
760a9d5
Merge pull request #17803 from anntzer/contproj
timhoffm Jul 19, 2020
e7faf1b
Update blitting.py
eterny13 Jul 19, 2020
6f25240
Merge pull request #17966 from ekrecker/patch-1
jklymak Jul 19, 2020
4ada98a
DOC: save to static on generation, but git ignore
jklymak Jul 17, 2020
3d674dd
Fix PyPy compatiblity issue
isuruf Jul 19, 2020
e9fdba7
Fixed #17970 - Docstrings should not accessed with -OO
linchiwei123 Jul 20, 2020
0d1d95c
Build lognorm/symlognorm from corresponding scales.
anntzer Nov 30, 2019
ed4b877
Merge pull request #17972 from isuruf/patch-1
dopplershift Jul 20, 2020
2f725a6
gtk: Fix `draw` on unmapped windows.
QuLogic Jul 20, 2020
73f8cea
Merge pull request #17976 from linchiwei123/fix-#17970
QuLogic Jul 20, 2020
79c26b4
Omit metadata tag if it's empty
yuyichao Jul 19, 2020
fffb962
Honor `'Date': None` in metadata
yuyichao Jul 19, 2020
98474c8
Merge pull request #16457 from anntzer/scale-norm
QuLogic Jul 20, 2020
32ef145
FIX: undeprecate and udate num2epoch/epoch2num
jklymak Jul 20, 2020
57c8baa
Merge pull request #17983 from jklymak/fix-pandas-need-num2epoch
QuLogic Jul 21, 2020
7803062
gtk/tk: Ensure no flicker when hovering over images.
QuLogic Jul 21, 2020
623ed98
Make inset_axes and secondary_axis picklable.
anntzer Jul 21, 2020
1e6352a
Special case degree-1 Bezier curves.
anntzer Jul 21, 2020
0d5c018
BF: for degenerate polygons, add CLOSEPOLY vertex
brunobeltran Jul 20, 2020
408331a
review comments on pause/resume animation example
DCtheTall Jul 21, 2020
096d0ac
Merge pull request #17994 from anntzer/bez
dopplershift Jul 21, 2020
3d35d26
Avoid using Bbox machinery in Path.get_extents; special case polylines.
anntzer Jul 21, 2020
80848d2
Merge pull request #17995 from anntzer/bezex
jklymak Jul 21, 2020
a695e93
Deprecate the unneeded Fonts.destroy.
anntzer Jul 19, 2020
67aafa9
Use separators in toolmanager consistent with toolbar.
QuLogic Jul 21, 2020
f111477
Shorten tight_bbox.
anntzer Jul 21, 2020
9ac3474
Sync ToolManager status message to toolbar's.
QuLogic Jul 21, 2020
c8d9e8d
Merge pull request #18003 from anntzer/undestroy
QuLogic Jul 21, 2020
86f1ea7
Merge pull request #17992 from anntzer/tb
QuLogic Jul 21, 2020
37cb671
Merge pull request #17993 from anntzer/pis
tacaswell Jul 21, 2020
6958f88
Merge pull request #17969 from yuyichao/svgmeta
tacaswell Jul 22, 2020
21c3e3f
Merge pull request #17982 from brunobeltran/closepoly-clobbers-poly-v…
QuLogic Jul 22, 2020
019a752
add test with -OO (#17988)
linchiwei123 Jul 22, 2020
548009c
Use argumentless `super()` more.
QuLogic Jul 22, 2020
6a5e007
Fix flipped paths in non-writable config dir warning.
QuLogic Jul 22, 2020
d7157b4
Cache realpath resolution in font_manager.
anntzer Jul 22, 2020
5713087
Merge pull request #18013 from QuLogic/super-argless
tacaswell Jul 22, 2020
9fcf958
Merge pull request #18014 from QuLogic/fix-non-writable-config
jklymak Jul 22, 2020
10ea266
Merge pull request #18018 from anntzer/rpc
jklymak Jul 22, 2020
e2fbf41
Merge pull request #17963 from QuLogic/backend-deprecations
tacaswell Jul 22, 2020
3399671
FIX: Be sure matplotlib.backends is imported before we use it
tacaswell Jul 22, 2020
03aebfb
Merge pull request #17981 from QuLogic/gtk3-unmapped-draw
tacaswell Jul 22, 2020
9fe9820
Use `super()` more in event classes.
QuLogic Jul 22, 2020
0414b3f
Use `super()` more in collections and containers.
QuLogic Jul 22, 2020
3d20859
Use `super()` more in transforms.
QuLogic Jul 22, 2020
cb8c65b
Use `super()` more in Axes/Axis.
QuLogic Jul 23, 2020
d10e486
Use `super()` more in offset boxes.
QuLogic Jul 23, 2020
9fbb035
Remove some unused imports.
QuLogic Jul 23, 2020
d10c4c4
Fix PolyCollection.set_verts optimization.
QuLogic Jul 23, 2020
4c43774
Merge pull request #18026 from tacaswell/fix_custom_backend
timhoffm Jul 23, 2020
c6b11f0
Merge pull request #18030 from QuLogic/fix-poly-verts-opt
jklymak Jul 23, 2020
1b783f1
Added figpager info
ebenp Jul 23, 2020
440ddef
Merge pull request #18029 from QuLogic/flake8
jklymak Jul 23, 2020
cd5e846
Merge pull request #18028 from QuLogic/super1
tacaswell Jul 23, 2020
d4857ef
FIX: use internal _set_postion, not external
jklymak Jul 23, 2020
228d997
TST: add test that colorbar goes on bottom
jklymak Jul 23, 2020
0a83b9c
Merge pull request #18038 from jklymak/fix-mplot3d-aspect-colorbar
WeatherGod Jul 23, 2020
bda5766
scatter: Raise if unexpected type of `s` argument.
QuLogic Jul 23, 2020
983c1fc
Use `super()` in text-related classes.
QuLogic Jul 23, 2020
91fde86
Use `super()` in triangulation classes.
QuLogic Jul 23, 2020
e24a618
Use `super()` in legends.
QuLogic Jul 23, 2020
ebc784f
Use `super()` in line classes.
QuLogic Jul 23, 2020
9ceaf75
Use `super()` in color-related classes.
QuLogic Jul 23, 2020
7647550
Merge pull request #18042 from QuLogic/scatter-size
jklymak Jul 24, 2020
177d055
Discourage references in section headings.
QuLogic Jul 24, 2020
6e76411
Merge pull request #18046 from QuLogic/doc-link-headers
timhoffm Jul 24, 2020
4757d98
FIX: update num2julian and julian2num
jklymak Jul 22, 2020
4b179b9
Merge pull request #18021 from jklymak/fix-update-num2julian
QuLogic Jul 24, 2020
51326f6
Fix link to get_offsets in hexbin doc
dstansby Jul 25, 2020
c09bef2
Test for patch color override warnings
dstansby Jul 25, 2020
e1da8bc
Test empty verts
dstansby Jul 25, 2020
2860571
Test antialiased default setting
dstansby Jul 25, 2020
0d7bfb9
Test default linestyle
dstansby Jul 25, 2020
ec0d9e7
Add cap/joinstyle default tests
dstansby Jul 25, 2020
298e895
Remove un-used trivial setters and getters
dstansby Jul 25, 2020
4abd1e4
Merge pull request #18055 from dstansby/hexbin-doc
timhoffm Jul 25, 2020
cca5b4d
Merge pull request #18059 from ebenp/master
timhoffm Jul 25, 2020
932cec5
Merge pull request #18063 from dstansby/set-get-remove
jklymak Jul 25, 2020
d53b16c
Merge pull request #17956 from dopplershift/mac-version-check
dstansby Jul 25, 2020
0339042
Merge pull request #17269 from leolchat/patch-1
dstansby Jul 25, 2020
9720e02
Merge pull request #18062 from dstansby/patch-cov
dopplershift Jul 25, 2020
7e95303
Merge pull request #18043 from QuLogic/super2
dopplershift Jul 25, 2020
3476c71
Remove support for multiple-color strings in to_rgba_array
dstansby Jul 26, 2020
02e1396
Add removal note
dstansby Jul 26, 2020
6636090
Remove rcsetup deprecations
dstansby Jul 26, 2020
df3a092
Add removal note
dstansby Jul 26, 2020
1e01d28
Improve removal note
dstansby Jul 26, 2020
6321e94
Improve removal note
dstansby Jul 26, 2020
4a49d77
Remove deprecated animation code
dstansby Jul 26, 2020
c6d32af
Add removal note
dstansby Jul 26, 2020
fe14082
Remove disable_internet.py
dstansby Jul 26, 2020
8bf6180
Add removal note
dstansby Jul 26, 2020
3ff5f0b
typo in usetex.py example
mansourhas Jul 26, 2020
5efb93a
Merge pull request #18075 from mansoor96g/patch-1
jklymak Jul 26, 2020
96dcd30
Set shading='auto' if invalid value passed
dstansby Jul 26, 2020
23ec51a
Merge pull request #18073 from dstansby/internet-remove
dopplershift Jul 27, 2020
3e439a4
Merge pull request #18070 from dstansby/rc-depr-remove
dopplershift Jul 27, 2020
013d508
Reduce numerical precision in Type 1 fonts
jkseppan Jul 27, 2020
44e30fe
Fix typo
dstansby Jul 27, 2020
d49acc8
Merge pull request #18079 from dstansby/invalid-shading
jklymak Jul 27, 2020
97c26b0
Merge pull request #18069 from dstansby/color-str-remove
jklymak Jul 27, 2020
9225aec
Make the formatting more explicit
jkseppan Jul 27, 2020
7b574c3
Check for float values for min/max values to ax{v,h}line (#17822)
dstansby Jul 27, 2020
12fcb82
Add a note on working around limit expansion of set_ticks()
timhoffm Jul 27, 2020
9617ea7
Use `super()` in widget classes and examples.
QuLogic Jul 23, 2020
38b2876
Use `super()` in animation classes.
QuLogic Jul 23, 2020
3bd5cda
Use `super()` in date classes.
QuLogic Jul 23, 2020
7cf9cb7
Use `super()` in patch classes.
QuLogic Jul 23, 2020
8f34a32
Use `super()` in hatch and path effects.
QuLogic Jul 23, 2020
92d7b7a
Use `super()` in tick locator classes.
QuLogic Jul 23, 2020
730c5a7
Use `super()` in various remaining classes.
QuLogic Jul 23, 2020
de6430f
Merge pull request #18071 from dstansby/ani-dep-rem
QuLogic Jul 27, 2020
d8ed5f6
Merge pull request #18087 from timhoffm/doc-set_ticks
jklymak Jul 27, 2020
cb0654d
Merge pull request #18044 from QuLogic/super3
dopplershift Jul 28, 2020
b5eca56
Merge pull request #18080 from jkseppan/type1-rounding
tacaswell Jul 28, 2020
a5bb90a
Revert "Convert adjust_bbox to use ExitStack."
QuLogic Jul 28, 2020
019537f
Privatize cbook.format_approx.
QuLogic Jul 28, 2020
12bef74
ci: Add tee to debug reviewdog.
QuLogic Jul 28, 2020
0c4a0d2
ci: Disable filtering of lint errors.
QuLogic Jul 28, 2020
3eb4779
Fix flake8 issues.
QuLogic Jul 28, 2020
fecfa1a
Merge pull request #18090 from QuLogic/private-format_approx
jklymak Jul 28, 2020
5e9083d
Test mixed-mode renderer with tight bbox_inches.
QuLogic Jul 28, 2020
788503f
ENH: Improve saving animations in GIF from ffmpeg
dopplershift Jul 28, 2020
1c02381
BUG: Fix passing of parameters from save to MovieWriter
dopplershift Jul 28, 2020
560ccff
Merge pull request #18091 from QuLogic/flake8
dopplershift Jul 28, 2020
c5a5f45
add tmp variable for PauseAnimation in example, update docs/missing-r…
DCtheTall Jul 28, 2020
6fd9dbe
add TimedAnimation methods to docs/missing-references.json
DCtheTall Jul 28, 2020
f50b414
FIX: catch all multi-dim warnings pandas
jklymak Jul 28, 2020
c671322
Support data reference for hexbin() parameter C
timhoffm Jul 28, 2020
580ae37
Merge pull request #18101 from jklymak/fix-catch-all-warnings-pandas
QuLogic Jul 28, 2020
11d5b75
Fix example code for enabling logging in API change notice (#18094)
dopplershift Jul 28, 2020
3c8af99
Merge pull request #17826 from DCtheTall/pauseresume
dopplershift Jul 28, 2020
8a3ec2f
DOC: update tight layout guide with set_in_layout (#18100)
jklymak Jul 29, 2020
97e525c
Merge pull request #18103 from timhoffm/hexbin-data
jklymak Jul 29, 2020
33503a2
Merge pull request #18093 from dopplershift/fix-ffmpeg-gif
tacaswell Jul 29, 2020
fcecbed
Merge pull request #18089 from QuLogic/fix-adjust_bbox
jklymak Jul 29, 2020
c3fb03b
fix typo in Poly3DCollection docstring
mdeff Jul 29, 2020
57e8fc3
Merge pull request #17947 from jklymak/doc-fix-CL-savefile
timhoffm Jul 29, 2020
083a193
Merge pull request #18115 from mdeff/patch-1
jklymak Jul 29, 2020
e54cf8f
Add explanatory text for rasterization demo (#18012)
marychrisgo Jul 29, 2020
88c8c83
Copy docstring description from Axes.legend() to Figure.legend()
timhoffm Jul 28, 2020
08ca355
Improve rasterization demo
timhoffm Jul 29, 2020
4b2a3a9
Deprecate various vector-backend-specific mathtext helpers.
anntzer Jul 17, 2020
0cbe4fc
Document and test legend argument parsing
timhoffm Jul 29, 2020
f794206
Merge pull request #18121 from timhoffm/rasterization
jklymak Jul 29, 2020
fabbbdc
Cleanup figure title example
timhoffm Jul 29, 2020
fd41efc
Silence context for blitting type check exception.
QuLogic Jul 30, 2020
8a3f1dd
Fix and simplify test_draw_frame.
QuLogic Jul 30, 2020
34ac389
pdf: Convert operator list to an Enum.
QuLogic Jul 30, 2020
29ba9a9
Merge pull request #18123 from timhoffm/doc-figure-title
QuLogic Jul 30, 2020
8a78bf2
Merge pull request #18125 from QuLogic/pdf-ops
timhoffm Jul 30, 2020
9fa9efb
Merge pull request #18124 from QuLogic/fix-test_draw_frame
tacaswell Jul 30, 2020
7f0ff04
Merge pull request #18122 from timhoffm/legend-labels2
dopplershift Jul 30, 2020
9e214b2
DOC: Move an API change fragment to new location.
QuLogic Jul 31, 2020
11177d7
Update exclude_patterns for moved API/what's new.
QuLogic Jul 31, 2020
e993baf
Build on xcode9
jkseppan Jul 31, 2020
ae28d9d
Try to install Qt 4.8
jkseppan Jul 31, 2020
92a3b53
Add some decorative titles in the travis output
jkseppan Jul 31, 2020
4cfaa9e
Skip the tests requiring Qt5
jkseppan Jul 31, 2020
a43518f
See if we can add timings to the titles
jkseppan Jul 31, 2020
d7fa78b
Skip warning about unused import
jkseppan Jul 31, 2020
51740ec
uncomment only: master
jkseppan Jul 31, 2020
d8db93f
Merge pull request #18133 from QuLogic/doc-api
dopplershift Jul 31, 2020
acc4eca
Improve docs of mathtext internals.
anntzer Jul 21, 2020
8b04e35
Fix typo in mathtext_data.
anntzer Jul 21, 2020
9756aca
Merge pull request #18004 from anntzer/mathtext
QuLogic Jul 31, 2020
9ad99c4
Fix nbAgg sizing on Chrome 84.
QuLogic Aug 1, 2020
d50fded
nbagg: Use device sized content size to resize canvas.
QuLogic Aug 1, 2020
d965261
nbAgg: Fix disabling the context menu in the canvas.
QuLogic Aug 1, 2020
66d9a21
Remove Qt4.8
jkseppan Aug 1, 2020
edeb238
Sort 3d sizes along with other properties
tomneep Jul 31, 2020
9c67676
Don't install libpng
jkseppan Aug 2, 2020
ea02ac1
Don't install pkg-config
jkseppan Aug 2, 2020
65115e0
Put the downloads in ~/Downloads
jkseppan Aug 2, 2020
d552816
Simplify script
jkseppan Aug 2, 2020
85b6da9
Try caching the downloads elsewhere
jkseppan Aug 2, 2020
968b063
Clarify comment
jkseppan Aug 2, 2020
b38a870
Merge pull request #18006 from QuLogic/mep22-fixes
jkseppan Aug 2, 2020
1c55901
Merge pull request #17989 from QuLogic/toolbar-flicker
jkseppan Aug 2, 2020
164e650
Merge pull request #18136 from tomneep/mplot3d_scatter_sizes
jkseppan Aug 2, 2020
a0b9fe3
Merge pull request #18002 from anntzer/unmathtext
jkseppan Aug 2, 2020
2c170f4
Merge pull request #18106 from timhoffm/legend-labels
jkseppan Aug 2, 2020
1caf17b
Merge pull request #18134 from jkseppan/ci-macos
jkseppan Aug 2, 2020
79063ed
DOC: fix align_xlabels() typo
mspacek Aug 2, 2020
3e75187
Merge pull request #18149 from mspacek/patch-3
jklymak Aug 2, 2020
df50f12
Merge pull request #18142 from QuLogic/fix-nbagg-chrome84
jklymak Aug 2, 2020
2691c30
Merge branch 'developer' of https://github.com/sarthakforwet/matplotl…
sarthakforwet Aug 7, 2020
6a545ca
autoscale_tutorial.py: improved style & formatting of the code
sarthakforwet Aug 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 7 additions & 10 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ environment:
# In theory we could use a single CONDA_INSTALL_LOCN because we construct
# the envs anyway. But using one for the right python version hopefully
# making things faster due to package caching.
- PYTHON_VERSION: "3.6"
CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
- PYTHON_VERSION: "3.7"
CONDA_INSTALL_LOCN: "C:\\Miniconda37-x64"
TEST_ALL: "no"
EXTRAREQS: "-r requirements/testing/travis_extra.txt"
- PYTHON_VERSION: "3.7"
- PYTHON_VERSION: "3.8"
CONDA_INSTALL_LOCN: "C:\\Miniconda37-x64"
TEST_ALL: "no"
EXTRAREQS: "-r requirements/testing/travis_extra.txt"

# We always use a 64-bit machine, but can build x86 distributions
# with the PYTHON_ARCH variable
Expand All @@ -55,19 +56,15 @@ install:
# For building, use a new environment
- conda create -q -n test-environment python=%PYTHON_VERSION% tk
- activate test-environment
# pull pywin32 from conda because on py38 there is something wrong with finding
# the dlls when insalled from pip
- conda install -c conda-forge pywin32
- echo %PYTHON_VERSION% %TARGET_ARCH%
# Install dependencies from PyPI.
- python -mpip install --upgrade -r requirements/testing/travis_all.txt %EXTRAREQS% %PINNEDVERS%
# Install optional dependencies from PyPI.
# Sphinx is needed to run sphinxext tests
- python -mpip install --upgrade sphinx

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

# Show the installed packages + versions
- conda list

Expand Down
228 changes: 125 additions & 103 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,125 +4,149 @@
version: 2.1


###########################################
# Define some common steps as YAML anchors.
#######################################
# Define some common steps as commands.
#

apt-run: &apt-install
name: Install apt packages
command: |
sudo apt -qq update
sudo apt install -y \
inkscape \
ffmpeg \
dvipng \
lmodern \
cm-super \
texlive-latex-base \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-latex-recommended \
texlive-pictures \
texlive-xetex \
graphviz \
fonts-crosextra-carlito \
fonts-freefont-otf \
fonts-humor-sans \
optipng

fonts-run: &fonts-install
name: Install custom fonts
command: |
mkdir -p ~/.local/share/fonts
wget -nc https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O ~/.local/share/fonts/Felipa-Regular.ttf || true
fc-cache -f -v
save_cache:
key: fonts-2
paths:
- ~/.local/share/fonts/
restore_cache:
key: fonts-2

pip-run: &pip-install
# Upgrade pip and setuptools and wheel to get as clean an install as possible
name: Upgrade pip, setuptools, wheel
command: |
python -mpip install --upgrade --user pip
python -mpip install --upgrade --user wheel
python -mpip install --upgrade --user setuptools

deps-run: &deps-install
name: Install Python dependencies
command: |
python -mpip install --user numpy${NUMPY_VERSION} codecov coverage
python -mpip install --user -r requirements/doc/doc-requirements.txt

mpl-run: &mpl-install
name: Install Matplotlib
command: python -mpip install --user -ve .

doc-run: &doc-build
name: Build documentation
command: |
# Set epoch to date of latest tag.
export SOURCE_DATE_EPOCH="$(git log -1 --format=%at $(git describe --abbrev=0))"
make html O=-T
rm -r build/html/_sources
working_directory: doc

doc-bundle-run: &doc-bundle
name: Bundle sphinx-gallery documentation artifacts
command: tar cf doc/build/sphinx-gallery-files.tar.gz doc/api/_as_gen doc/gallery doc/tutorials
when: always
commands:
apt-install:
steps:
- run:
name: Install apt packages
command: |
sudo apt -qq update
sudo apt install -y \
inkscape \
ffmpeg \
dvipng \
lmodern \
cm-super \
texlive-latex-base \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-latex-recommended \
texlive-pictures \
texlive-xetex \
graphviz \
fonts-crosextra-carlito \
fonts-freefont-otf \
fonts-humor-sans \
optipng

fonts-install:
steps:
- restore_cache:
key: fonts-2
- run:
name: Install custom fonts
command: |
mkdir -p ~/.local/share/fonts
wget -nc https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O ~/.local/share/fonts/Felipa-Regular.ttf || true
fc-cache -f -v
- save_cache:
key: fonts-2
paths:
- ~/.local/share/fonts/

pip-install:
description: Upgrade pip and setuptools and wheel to get as clean an install as possible
steps:
- run:
name: Upgrade pip, setuptools, wheel
command: |
python -mpip install --upgrade --user pip
python -mpip install --upgrade --user wheel
python -mpip install --upgrade --user setuptools

deps-install:
parameters:
numpy_version:
type: string
default: ""
steps:
- run:
name: Install Python dependencies
command: |
python -mpip install --user numpy<< parameters.numpy_version >> codecov coverage
python -mpip install --user -r requirements/doc/doc-requirements.txt

mpl-install:
steps:
- run:
name: Install Matplotlib
command: python -mpip install --user -ve .

doc-build:
steps:
- restore_cache:
keys:
- sphinx-env-v1-{{ .BuildNum }}-{{ .Environment.CIRCLE_JOB }}
- sphinx-env-v1-{{ .Environment.CIRCLE_PREVIOUS_BUILD_NUM }}-{{ .Environment.CIRCLE_JOB }}
- run:
name: Build documentation
command: |
# Set epoch to date of latest tag.
export SOURCE_DATE_EPOCH="$(git log -1 --format=%at $(git describe --abbrev=0))"
make html O=-T
rm -r build/html/_sources
working_directory: doc
- save_cache:
key: sphinx-env-v1-{{ .BuildNum }}-{{ .Environment.CIRCLE_JOB }}
paths:
- doc/build/doctrees

doc-bundle:
steps:
- run:
name: Bundle sphinx-gallery documentation artifacts
command: tar cf doc/build/sphinx-gallery-files.tar.gz doc/api/_as_gen doc/gallery doc/tutorials
when: always
- store_artifacts:
path: doc/build/sphinx-gallery-files.tar.gz


##########################################
# Here is where the real jobs are defined.
#

jobs:
docs-python36:
docs-python37:
docker:
- image: circleci/python:3.6
- image: circleci/python:3.7
steps:
- checkout

- run: *apt-install
- run: *fonts-install
- run: *pip-install
- run:
<<: *deps-install
environment:
NUMPY_VERSION: "==1.13.0"
- run: *mpl-install
- apt-install
- fonts-install
- pip-install

- run: *doc-build
- deps-install
- mpl-install

- run: *doc-bundle
- store_artifacts:
path: doc/build/sphinx-gallery-files.tar.gz
- doc-build

- doc-bundle

- store_artifacts:
path: doc/build/html

docs-python37:
docs-python38-min:
docker:
- image: circleci/python:3.7
- image: circleci/python:3.8
steps:
- checkout

- run: *apt-install
- run: *fonts-install
- run: *pip-install
- apt-install
- fonts-install
- pip-install

- run: *deps-install
- run: *mpl-install
- deps-install:
numpy_version: "==1.16.0"
- mpl-install

- run: *doc-build
- doc-build

- run: *doc-bundle
- store_artifacts:
path: doc/build/sphinx-gallery-files.tar.gz
- doc-bundle

- store_artifacts:
path: doc/build/html
Expand All @@ -133,18 +157,16 @@ jobs:
steps:
- checkout

- run: *apt-install
- run: *fonts-install
- run: *pip-install
- apt-install
- fonts-install
- pip-install

- run: *deps-install
- run: *mpl-install
- deps-install
- mpl-install

- run: *doc-build
- doc-build

- run: *doc-bundle
- store_artifacts:
path: doc/build/sphinx-gallery-files.tar.gz
- doc-bundle

- store_artifacts:
path: doc/build/html
Expand All @@ -164,6 +186,6 @@ workflows:
version: 2
build:
jobs:
- docs-python36
- docs-python37
- docs-python38
- docs-python38-min
9 changes: 7 additions & 2 deletions .circleci/deploy-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

set -e

if [ "$CIRCLE_PROJECT_USERNAME" != "matplotlib" -o "$CIRCLE_BRANCH" != "master" -o "$CIRCLE_PULL_REQUEST" != "" ]; then
echo "Not uploading docs from non-master branch or non-Matplotlib org."
if [ "$CIRCLE_PROJECT_USERNAME" != "matplotlib" ] || \
[ "$CIRCLE_BRANCH" != "master" ] || \
[[ "$CIRCLE_PULL_REQUEST" == https://github.com/matplotlib/matplotlib/pull/* ]]; then
echo "Not uploading docs for ${CIRCLE_SHA1}"\
"from non-master branch (${CIRCLE_BRANCH})"\
"or pull request (${CIRCLE_PULL_REQUEST})"\
"or non-Matplotlib org (${CIRCLE_PROJECT_USERNAME})."
exit
fi

Expand Down
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ per-file-ignores =
lib/matplotlib/pyplot.py: F401, F811
lib/matplotlib/style/__init__.py: F401
lib/matplotlib/testing/conftest.py: F401
lib/matplotlib/testing/decorators.py: F401
lib/matplotlib/tests/conftest.py: F401
lib/matplotlib/tests/test_backend_qt.py: F401
lib/matplotlib/tests/test_mathtext.py: E501
Expand Down Expand Up @@ -158,6 +157,7 @@ per-file-ignores =
examples/images_contours_and_fields/tripcolor_demo.py: E201, E402
examples/images_contours_and_fields/triplot_demo.py: E201, E402
examples/images_contours_and_fields/watermark_image.py: E402
examples/lines_bars_and_markers/curve_error_band.py: E402
examples/lines_bars_and_markers/errorbar_limits_simple.py: E402
examples/lines_bars_and_markers/fill.py: E402
examples/lines_bars_and_markers/fill_between_demo.py: E402
Expand Down Expand Up @@ -225,6 +225,7 @@ per-file-ignores =
examples/shapes_and_collections/ellipse_demo.py: E402
examples/shapes_and_collections/fancybox_demo.py: E402
examples/shapes_and_collections/hatch_demo.py: E402
examples/shapes_and_collections/hatch_style_reference.py: E402
examples/shapes_and_collections/line_collection.py: E402
examples/shapes_and_collections/marker_path.py: E402
examples/shapes_and_collections/patch_collection.py: E402
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- [ ] New features are documented, with examples if plot related
- [ ] Documentation is sphinx and numpydoc compliant
- [ ] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
- [ ] Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way
- [ ] Documented in doc/api/next_api_changes/* if API changed in a backward-incompatible way

<!--
Thank you so much for your PR! To help us review your contribution, please
Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
flake8 --docstring-convention=all | \
reviewdog -f=pep8 -name=flake8 -reporter=github-check
reviewdog -f=pep8 -name=flake8 \
-tee -reporter=github-check -filter-mode nofilter

eslint:
name: eslint
Expand All @@ -40,6 +41,7 @@ jobs:
- name: eslint
uses: reviewdog/action-eslint@v1
with:
filter_mode: nofilter
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
workdir: 'lib/matplotlib/backends/web_backend/'
Loading