-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Issue 2899 #2923
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
Issue 2899 #2923
Conversation
…edge and text elements separately
… to pie. needs feedback on generated pyplot
@tacaswell @mdboom
Any idea what could be going wrong? It seems to me as if this test could fail depending on how long it takes for the rendering function. It probably is not something caused by my changes. |
I would ignore those test failures, that one pops up from time to time (free cpu cycles are not guaranteed cpu cycles). The problem with the unicode strings come from the |
@tacaswell I am now starting to look at the needs_patch issues. |
This looks great! Thanks for sorting out the issue with boilerplate. I am happy with these changes, but I would like @mdboom or @efiring to take a look at the changes to boiler plate. I also don't recall of the top of my head if we want to keep all of the images for all of the tests (png might be enough). |
a plotting method from pyplot, edit the appropriate list in `boilerplate.py` | ||
and then run the script which will update the content in | ||
`lib/matplotlib/pyplot.py`. Both the changes in `boilerplate.py` and | ||
`lib/matplotlib/pyplot.py` should be checked into the repository. | ||
|
||
Note: boilerplate.py looks for changes in the installed version of matplotlib |
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.
Five years ago, in e91c5a1, I commented out the line that was making boilerplate look first in the local tree, without removing the comment that went with that line. I don't know why I did that. If the present behavior is what we want, then the first two lines in the excerpt from boilerplate, below, should be deleted. I suspect the present behavior makes sense because otherwise python code would be found in the source tree but compiled extensions would be from the installed version, so they could be out of sync.
# import the local copy of matplotlib, not the installed one
#sys.path.insert(0, './lib')
from matplotlib.axes import Axes
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.
@efiring
Updated boilerplate.py with a better comment.
Travis PEP8 failures are unrelated to this PR. Were modules such as animation and patches previously exempt from PEP8 testing, but recently included? Or are more PEP8 tests now being used as criteria for rejection? Or did a merge accidentally revert the modules to a much earlier state? I don't think it is the last of these, fortunately. |
Oddly, one of the builds (2.7) seems to have passed even though the others failed for pep8 reasons..... |
@efiring @tacaswell I have no idea of any modules being PEP8 exempt. I jumped on the matplotlib dev bandwagon last week and this is literally my first PR to this repo. Also, I don't see any merge related changes in the diff for this PR. |
@tacaswell @efiring |
The other PR squelches the tests that we did not run before. Please don't start fixing pep8 issues in this PR, if we are going to do that we should do it in a dedicated PR. Style conflicts are the worst to merge. |
Yayy!! My first contribution to matplotlib. |
Thank you @sfroid for the contribution. |
Thank you @sfroid ! |
#2899
Adding wedgeprops and textprops arguments to pie, which are forwarded to the wedge and text objects respectively. This allows the user to control various properties of the pie directly (eg linewidth of the border of wedges).
Added image test to check linewidth of pies (for cases linewidth 0 and 2).