Skip to content
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

Plot violins in a specified order #14

Merged
merged 5 commits into from
Jul 17, 2019
Merged

Conversation

seamusholden
Copy link
Contributor

Added optional argument 'GroupOrder', {OrderCell} which allows the order of side by side violins to be specified.
It's a bit hacky as this is done in violinplot.m rather than the Violin class but this seemed the simplest way to do it.
Currently only tested using the data input format (Data,Label) as this is what I use. Looking at how categories work it should work fine anyway though.

Copy link
Owner

@bastibe bastibe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I like it.

Find below a few suggestions for improvements, before we merge.

violinplot.m Outdated Show resolved Hide resolved
violinplot.m Outdated Show resolved Hide resolved
seamusholden added 3 commits July 17, 2019 15:08
Added a test script to test the default violinplot and the new plot ordering option before I make further changes
Resolve the spacing/ formatting request
Updated the vararg parsing.
Not sure it's ended upsimpler but it is a bit more robust
@seamusholden
Copy link
Contributor Author

Did the requested changes. Also added a test case script to make sure my changes don't break anything - that's in a separate commit 03f0ed2 - up to you whether you want that one as well

@bastibe bastibe merged commit 1a62a2b into bastibe:master Jul 17, 2019
@bastibe
Copy link
Owner

bastibe commented Jul 17, 2019

Cool, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants