Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Equal area markers#16891
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Draft
brunobeltran wants to merge7 commits intomatplotlib:mainChoose a base branch frombrunobeltran:equal_area_markers
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Draft
Equal area markers#16891
Changes fromall commits
Commits
Show all changes
7 commits Select commitHold shift + click to select a range
d31d0cb
refactor Bezier so it doesn't depend on Path
brunobeltran9774f8c
correctly compute bounding box for path
brunobeltran4c80f38
add function to compute (signed) area of path
brunobeltrana76069b
code to compute bezier segment / path lengths
brunobeltran4b5fc44
add function to get center of mass of path
brunobeltranc4628b7
marker-transforms
ImportanceOfBeingErnestf4ab8a2
proposed norm/center specs in MarkerStyle.__init__
brunobeltranFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
14 changes: 7 additions & 7 deletionsdoc/api/next_api_changes/deprecations.rst
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
2 changes: 1 addition & 1 deletiondoc/api/next_api_changes/removals.rst
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
12 changes: 12 additions & 0 deletionsdoc/users/next_whats_new/2020-03-16_markerstyle_normalization.rst
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Allow for custom marker scaling | ||
------------------------------- | ||
`~.markers.MarkerStyle` gained a keyword argument *normalization*, which may be | ||
set to *"none"* to allow for custom paths to not be scaled.:: | ||
MarkerStyle(Path(...), normalization="none") | ||
`~.markers.MarkerStyle` also gained a `~.markers.MarkerStyle.set_transform` | ||
method to set affine transformations to existing markers.:: | ||
m = MarkerStyle("d") | ||
m.set_transform(m.get_transform() + Affine2D().rotate_deg(30)) |
65 changes: 58 additions & 7 deletionsexamples/lines_bars_and_markers/scatter_piecharts.py
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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.