Implemented a new Style Cycle feature for Issue #2841#4314
Implemented a new Style Cycle feature for Issue #2841#4314jasonliw93 wants to merge 7 commits intomatplotlib:masterfrom
Conversation
|
How does this compare to #4258? |
|
Our implementation is simpler, we don't handle the composition of different styles. We simply cycle through the given styles and combine them when you call next(). However, a seperate function could be created to help the users create cycles similar to the one made by tacaswell. |
There was a problem hiding this comment.
This needs to inherit from object
|
I think that #4258 is simpler and more powerful (but I am biased 😉 ). Left some comments about technical issues, but I am not a huge fan of this design, it seems too brittle. |
|
Should probably take a look at #4258 On Sun, Apr 5, 2015 at 7:25 PM, jasonliw93 notifications@github.com wrote:
|
|
And, I just noticed that the PR got its title changed, so the subsequent comments didn't show up in the same thread in gmail... ignore me. |
|
Thank you for all the comments tacaswell, this was a good learning experience nonetheless and feel free to take any ideas from our implementation if this doesn't get merged. |
|
One major design design difference is that your On the other hand, I do appreciate the minimal amount of API breakage that this has. On the other other hand, it may be an API that needs to be broken to move forward. |
|
Closing in favor of a solution built on #4258 @jasonliw93 @lichri12 Even though this didn't get merged thank you for you work! Closing PRs with out merging is my least favorite part of maintaining mpl 😞 . |
Implemented a style cycle feature for Issue #2841
We incorporated the requested feature for a linestyle cycle that behaves like the existing color cycle, however we created a new class called Cycle to add the ability to cycle through less common line styles as well.
Currently, it is only used and owned by axes for plotting lines, but this could be extensible to other plots in the future as well.