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

Skip to content

Edit a file in lib #8

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 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,15 @@ commands:
steps:
- run:
name: Install Matplotlib
command: python -m pip install --user -ve .
command: |
if [[ "$CIRCLE_BRANCH" == v*-doc ]]; then
# The v*-doc branches must build against the specified release.
version=${CIRCLE_BRANCH%-doc}
version=${version#v}
python -m pip install matplotlib==${version}
else
python -m pip install --user -ve .
fi
- save_cache:
key: build-deps-1
paths:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/clean_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,14 @@ jobs:
exit 1
fi

- name: Check for invalid backports to -doc branches
if: endsWith(github.base_ref, '-doc')
run: |
git fetch --quiet origin "$GITHUB_BASE_REF"
base="$(git merge-base "origin/$GITHUB_BASE_REF" 'HEAD^2')"
lib="$(git log "$base..HEAD^2" --pretty=tformat: --name-status -- lib src |
cut --fields 2 | sort || true)"
if [[ -n "$lib" ]]; then
printf 'Changes to the following files have no effect and should not be backported:\n%s\n' "$lib"
exit 1
fi
4 changes: 2 additions & 2 deletions lib/matplotlib/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
and for mapping numbers to colors in a 1-D array of colors called a colormap.

Mapping data onto colors using a colormap typically involves two steps: a data
array is first mapped onto the range 0-1 using a subclass of `Normalize`,
then this number is mapped to a color using a subclass of `Colormap`. Two
array is first mapped onto the range 0-1 using a subclass of `Normalize`, then
this number is mapped to a color using a subclass of `Colormap`. Two
subclasses of `Colormap` provided here: `LinearSegmentedColormap`, which uses
piecewise-linear interpolation to define colormaps, and `ListedColormap`, which
makes a colormap from a list of colors.
Expand Down