-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
Clean up linestyle arguments throughout Sage #13834
Comments
comment:3
Attachment: trac_13834_enable_short_linestyle.patch.gz This patch should enable short matplotlib linestyle keywords like ':' od '--' for arc, arrow, bezier_path, circle and ellipse. Up to now only long linestyle were available. Furthermore worng linestyle keywords now should lead to a Warning that the linestyle is unknown and ignored but the object is nevertheless plotted with the default linestyle. |
comment:5
Hello, Thanks for looking into this ticket. I will be able to do a more thorough review only later this week. With a casual look at the patch, I have the following comments about the formatting. In general, you can look at the Sage developer's guide on how to format certain things.
|
Attachment: tratrac_13834_enable_short_linestyle2.patch.gz some improvements proposed by ppurka have been added. Can directly be applied to sage 5.8 |
comment:6
Hi Basu, I tried to improve the formatting following your comments and added a new patch. tobi |
Author: Tobias Weich |
This comment has been minimized.
This comment has been minimized.
comment:8
Hi Tobias, your patch is quite good now. It is quite nice of you to have fixed a lot of docstrings. I also found a bunch of other places where linestyle needed cleanups. It also affected the new function Patchbot apply tratrac_13834_enable_short_linestyle2.patch trac_13834-more_linestyle_cleanups.patch |
comment:9
Hi thanks for the extensive improvements! I did the following in order to test the patches:
Built without errors or warnings checked coverage of changed files: The only thing which seems to be a little bit unlogical for me is:
Wouldn't the following be more reasonable: If matplotlib in some functions only understand linestyles "stepsdashed" the function get_matplotlib_linestyle should be called with the "short" keyword (as you do it in lines.py) but the keyword shouldn't be ignored in the function itself. But I don't see that this makes any problems so its just a question. I also tried to play with the enhanced functions and encountered no further problems. In any case: Since I'm inexperienced someone more experienced should have a final look in order to confirm the patches. |
comment:10
Replying to @sagetrac-twch:
Thanks for checking this. The patchbot is down, otherwise it would have checked for all of it.
Since
Thanks for checking them. I had checked some but not all.
Well, let's hope someone comes along and gives the patches a test drive. :) |
comment:11
Helloooooooooooo !! There were two rejects when I tried to apply the patches on 5.10.rc1 but short of this it looks good to me. Could you please rebase it ? I will then run all tests and set the ticket to Nathann |
comment:12
The rebased patches doesn't pass doctests in sage-5.11.beta3. This patch needs more TLC. |
Work Issues: fix doctests |
comment:13
Well, it seems a bunch of them fail anyway on vanilla sage-5.11.beta3.
|
Apply to devel/sage (rebased to sage-5.11.beta3) |
Attachment: trac_13834_enable_short_linestyle.2.patch.gz Apply to devel/sage (Rebased to sage-5.11.beta3) |
This comment has been minimized.
This comment has been minimized.
comment:14
Attachment: trac_13834-more_linestyle_cleanups.patch.gz Oops sorry. Sage-5.11b3 was just fine. I was using the wrong sage version to test this directory. Passes all doctests in Patchbot apply trac_13834_enable_short_linestyle.2.patch trac_13834-more_linestyle_cleanups.patch |
Changed work issues from fix doctests to none |
Changed author from Tobias Weich to Tobias Weich, Punarbasu Purkayastha |
Reviewer: Punarbasu Purkayastha, Tobias Weich, Nathann Cohen |
comment:15
I also removed some trailing whitespace that I didn't see earlier. |
comment:16
It also passes all tests on my computers except for unrelated things.. Soooooooooo let it go ! Thank you for this patch Nathann |
comment:17
Yay! Thanks. :) |
comment:18
Helloooooooooo guys !! If any of you had a split second to give #14805 a review, it would be very very kind. The patch does absolutely nothing, it's just a doc cleaning of a file that was not included in the documentation Thannnks you if you can ! Otherwise it's not a very bad problem Nathann |
Merged: sage-5.11.rc0 |
The linestyle argument is inconsistent across plots, as already pointed out in #13423. It seems this is spread out throughout many Sage components including
sage.plot.*
andsage.graphs.graph_plot
.Apply to devel/sage
CC: @kcrisman @sagetrac-twch
Component: graphics
Author: Tobias Weich, Punarbasu Purkayastha
Reviewer: Punarbasu Purkayastha, Tobias Weich, Nathann Cohen
Merged: sage-5.11.rc0
Issue created by migration from https://trac.sagemath.org/ticket/13834
The text was updated successfully, but these errors were encountered: