Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
aec0df4
make cheatsheets column width exactly 57 mm
jimustafa Oct 23, 2021
b20eb40
start refactoring using style sheets
jimustafa Nov 14, 2021
5ea8b48
continue refactoring using style sheets
jimustafa Oct 23, 2021
aeeeb3b
finish (for now) refactoring using style sheets
jimustafa Nov 24, 2021
e4c6b67
small tweaks to size and spacing identified during review
jimustafa Jan 3, 2022
37cc541
BLD: update pins
tacaswell Feb 23, 2022
07f9bf4
GHA: update workflow to use python3.10
tacaswell Feb 23, 2022
1609898
CI: do not trust yaml, use strings
tacaswell Feb 23, 2022
7735701
Merge pull request #106 from tacaswell/update_pins
QuLogic Feb 23, 2022
9c26d79
Make png background opaque white
StefRe Sep 12, 2022
c461609
Improve tick label rotation method
StefRe Sep 12, 2022
02aa721
Merge pull request #115 from StefRe/rotate
timhoffm Sep 21, 2022
ad12e57
Merge pull request #114 from StefRe/png_white_bg
timhoffm Sep 21, 2022
c1f9725
Update the beginner tex file for the issue #117
radarFudan Oct 10, 2022
56c1693
Merge pull request #118 from radarFudan/master
timhoffm Oct 11, 2022
49950f4
Change casing of sentences
oscargus Dec 31, 2022
d3722d9
Update docker and action versions
oscargus Dec 31, 2022
83b6426
Merge pull request #121 from oscargus/casing
QuLogic Jan 1, 2023
72d9a66
Merge pull request #122 from oscargus/dependencies
QuLogic Jan 1, 2023
9396613
Fix non-existent cartopy projection
StefRe Mar 7, 2023
7d41bab
Fix gitter url
StefRe Mar 9, 2023
1affc9e
Merge pull request #123 from StefRe/fix/cartopy
QuLogic Mar 14, 2023
4b6dbae
Add a randomness seed to transparency script
QuLogic Mar 28, 2023
a5a46ca
Simplify some iterations in scripts
QuLogic Mar 28, 2023
3d7d3ff
Merge pull request #126 from QuLogic/transparent-seed
jklymak Mar 29, 2023
c44d32b
revert some changes
jimustafa Mar 30, 2023
cfa709d
replace `add_gridspec` with `plt.subplots`
jimustafa Mar 31, 2023
36607cd
Merge pull request #88 from jimustafa/revamp-with-style-sheets
jklymak Mar 31, 2023
05fbbb9
Merge pull request #128 from QuLogic/loops
ksunden Apr 12, 2023
e98828a
Replace calls to fig.show() with plt.show()
camriddell Jun 5, 2023
898944b
Merge pull request #135 from camriddell/master
rougier Jun 5, 2023
3720ef4
Bump pre-commit action version
dstansby Jan 23, 2024
c83e30f
Merge pull request #141 from dstansby/bump-pre-commit
QuLogic Jan 24, 2024
9d84c66
Bump version of wheel in requirements.txt
dstansby Jan 24, 2024
c1a4279
Merge pull request #140 from dstansby/bump-wheel
QuLogic Jan 24, 2024
85af93e
Add image diffs against previous build to CI results
QuLogic Mar 29, 2023
d7522e1
Merge pull request #130 from QuLogic/diff-results
dstansby Jan 30, 2024
245c650
Bump cartopy version
dstansby Jan 30, 2024
7f40833
Save figures in a path relative to the script
QuLogic Mar 29, 2023
987c8ce
Bump pyshp version
dstansby Jan 30, 2024
945899c
Merge pull request #144 from dstansby/cartopy-bump
timhoffm Jan 30, 2024
094933d
Merge pull request #127 from QuLogic/script-relative-save
timhoffm Jan 30, 2024
60b4a6b
Bump Matplotlib to 3.6
dstansby Jan 30, 2024
9ddb500
Update seaborn pdf filenames
dstansby Jan 30, 2024
6591a68
Merge pull request #145 from dstansby/mpl36
QuLogic Feb 1, 2024
0190fa6
Bump to Matplotlib 3.7.1
QuLogic Mar 28, 2023
05d47a5
Merge pull request #125 from QuLogic/mpl37
dstansby Feb 3, 2024
8e95ca7
Allow binary shapely wheels
QuLogic Feb 6, 2024
982b063
Add spaces after commas wherever possible
QuLogic Feb 6, 2024
d5bdedd
Fix typos in sine plots
QuLogic Feb 6, 2024
1b461e7
Fix typos in tips
QuLogic Feb 6, 2024
fc020b3
Merge pull request #149 from QuLogic/minor-typos
timhoffm Feb 6, 2024
442e75f
Merge pull request #148 from QuLogic/binary-shapely
dstansby Feb 12, 2024
82a1f80
Bump version of pydata-sphinx-theme
dstansby Jan 24, 2024
15b1482
Use sphinx-design for columns
dstansby Jan 24, 2024
405f125
Allow resizing of grid
dstansby Feb 12, 2024
746eff2
Fix mpl-sphinx-theme pinning
dstansby Feb 13, 2024
3fece66
Merge pull request #142 from dstansby/bump-pydata
QuLogic Feb 14, 2024
8551a49
Simplify getting colormap sizes
QuLogic Mar 29, 2023
61c26ab
Use luminance to choose text colour over colour cycles
QuLogic Feb 6, 2024
a5c2769
Simplify link checker
QuLogic Feb 15, 2024
e8f23b6
Merge pull request #147 from QuLogic/simplify-colormap
timhoffm Feb 19, 2024
170eb4a
Fix broken link
dstansby Mar 4, 2024
0f32d80
Merge pull request #151 from dstansby/broken-link
QuLogic Mar 4, 2024
5f01d6d
Bump cryptography from 42.0.2 to 42.0.4 in /requirements
dependabot[bot] Mar 5, 2024
305ebba
Merge pull request #150 from matplotlib/dependabot/pip/requirements/c…
dstansby Mar 5, 2024
e8d9284
Bump idna from 3.6 to 3.7 in /requirements
dependabot[bot] Apr 12, 2024
b3e710e
Merge pull request #153 from matplotlib/dependabot/pip/requirements/i…
QuLogic Apr 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.5.0
current_version = 3.7.4

[bumpversion:file:./check-matplotlib-version.py]
search = __version__ == '{current_version}'
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ orbs:
jobs:
build_docs:
docker:
- image: circleci/python:3.9
- image: cimg/python:3.9
steps:
- checkout
- run:
Expand Down
28 changes: 19 additions & 9 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,22 @@ jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: "3.10"
- name: Install dependencies
run: |
sudo apt update
sudo apt install \
fontconfig \
imagemagick \
libgeos++-dev \
libproj-dev \
poppler-utils
python -m pip install --upgrade pip
pip install -r requirements/requirements.txt
Expand Down Expand Up @@ -54,14 +52,26 @@ jobs:
- name: Run checks
run: |
make check
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: build
path: |
cheatsheets.pdf
handout-*.pdf
./docs/_build/html/
- uses: actions/upload-artifact@v4
id: diffs-artifact-upload
if: ${{ always() }}
with:
name: diffs
path: |
diffs/
- name: Output artifacts URL
run: |
echo 'Artifact URL:' \
'${{ steps.diffs-artifact-upload.outputs.artifact-url }}' \
>> $GITHUB_STEP_SUMMARY
- name: Publish cheatsheets and handouts
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
Expand Down
29 changes: 20 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SRC := $(wildcard *.tex)
CONVERTFLAGS = -density 150 -alpha remove -depth 8

.PHONY: default
default: all
Expand All @@ -8,30 +9,39 @@ all: logos figures cheatsheets handouts docs

.PHONY: logos
logos:
wget https://github.com/matplotlib/matplotlib/raw/v3.5.0/doc/_static/logo2.png -O ./logos/logo2.png
wget https://github.com/matplotlib/matplotlib/raw/v3.7.4/doc/_static/logo2.png -O ./logos/logo2.png

.PHONY: figures
figures:
# generate the figures
cd scripts && for script in *.py; do echo $$script; MPLBACKEND="agg" python $$script; done
# crop the figures
cd figures && for figure in *.pdf; do echo $$figure; pdfcrop $$figure $$figure; done
# regenerate some figures that should not be cropped
cd scripts && MPLBACKEND="agg" python styles.py
# crop some of the figures
cd figures && pdfcrop adjustments.pdf adjustments.pdf
cd figures && pdfcrop annotate.pdf annotate.pdf
cd figures && pdfcrop annotation-arrow-styles.pdf annotation-arrow-styles.pdf
cd figures && pdfcrop anatomy.pdf anatomy.pdf
cd figures && pdfcrop colornames.pdf colornames.pdf
cd figures && pdfcrop fonts.pdf fonts.pdf
cd figures && pdfcrop markers.pdf markers.pdf
cd figures && pdfcrop text-alignments.pdf text-alignments.pdf
cd figures && pdfcrop tick-formatters.pdf tick-formatters.pdf
cd figures && pdfcrop tick-locators.pdf tick-locators.pdf
cd figures && pdfcrop tip-font-family.pdf tip-font-family.pdf
cd figures && pdfcrop tip-hatched.pdf tip-hatched.pdf

.PHONY: cheatsheets
cheatsheets:
xelatex cheatsheets.tex
convert -density 150 cheatsheets.pdf -scene 1 cheatsheets.png
convert $(CONVERTFLAGS) cheatsheets.pdf -scene 1 cheatsheets.png

.PHONY: handouts
handouts:
xelatex handout-beginner.tex
xelatex handout-intermediate.tex
xelatex handout-tips.tex
convert -density 150 handout-tips.pdf handout-tips.png
convert -density 150 handout-beginner.pdf handout-beginner.png
convert -density 150 handout-intermediate.pdf handout-intermediate.png
convert $(CONVERTFLAGS) handout-tips.pdf handout-tips.png
convert $(CONVERTFLAGS) handout-beginner.pdf handout-beginner.png
convert $(CONVERTFLAGS) handout-intermediate.pdf handout-intermediate.png

.PHONY: check
check:
Expand All @@ -40,6 +50,7 @@ check:
./check-num-pages.sh handout-tips.pdf 1
./check-num-pages.sh handout-beginner.pdf 1
./check-num-pages.sh handout-intermediate.pdf 1
./check-diffs.py
./check-links.py cheatsheets.pdf

.PHONY: docs
Expand Down
Loading