-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Shade color #2745
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
Closed
Shade color #2745
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
2834c09
NF - added new feature to colors called shade_color to lighten or dar…
dvreed77 c926ba5
NF - added new feature to colors called shade_color to lighten or dar…
dvreed77 d4233b8
NF - added new feature to colors called shade_color to lighten or dar…
dvreed77 eca57fe
NF - added new feature to colors called shade_color to lighten or dar…
dvreed77 3216669
using plt
90f63f8
pylab to plt
1ee2986
pylab to plt and np
0fa4b94
pylab to plt and np
1b72df1
pylab to plt and np
a0665f7
pylab to plt and np
8f2b84c
DOC: slightly update demo
tacaswell 887e20d
DOC: whats_new for axes.labelpad
tacaswell 188d7a1
DOC: protect against non-gui backends in demo
tacaswell b328cbb
pep8
5a5f458
pep8
b26a521
pep8
3720671
pep8
a7fa5d9
pep8
38215ef
pep8
0f726dc
Implement draw_idle
mdehoon 0bbc091
Merge pull request #4731 from mdehoon/implementDrawIdle
tacaswell 5cadac1
Merge pull request #4724 from tacaswell/doc_update_demo
jenshnielsen 6e2ee31
Merge pull request #4739 from jkseppan/pdf-paint
efiring 0a7af4e
Merge pull request #4726 from tacaswell/doc_axeslabelpad_doc
efiring a967158
Merge pull request #4654 from domspad/MEP12-on-annotation-demo2.py
jenshnielsen 8dd9c29
Merge pull request #4663 from domspad/MEP12-on-axes_props.py
jenshnielsen d1d0122
Merge pull request #4657 from domspad/MEP12-on-anscombe.py
jenshnielsen b8d7e25
Merge pull request #4660 from domspad/MEP12-on-arrow_demo.py
jenshnielsen f37e6ef
Merge pull request #4664 from domspad/MEP12-on-axis_equal_demo.py
jenshnielsen 708468b
NF - added new feature to colors called shade_color to lighten or dar…
dvreed77 1c70b15
NF - added new feature to colors called shade_color to lighten or dar…
dvreed77 badd1f8
NF - added new feature to colors called shade_color to lighten or dar…
dvreed77 49b9b25
NF - added new feature to colors called shade_color to lighten or dar…
dvreed77 913a3b4
merged changes
dvreed77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NF - added new feature to colors called shade_color to lighten or dar…
…ken a given color by a given percentage (altered CC to ColorConverter)
- Loading branch information
commit c926ba5a24c7ceb8d5cbcd69a908d961fe5fd189
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1505,7 +1505,7 @@ def shade_color(color, percent): | |
|
||
""" | ||
|
||
cc = CC() | ||
cc = ColorConverter() | ||
|
||
rgb = cc.to_rgb(color) | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From memory, isn't there a global instance of this that you can use? (
colorConverter
or something?)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes,
mcolors.colorConverter