Violinplot-Matlab icon indicating copy to clipboard operation
Violinplot-Matlab copied to clipboard

Added 'Orientation' parameter for vertical and horizontal layouts

Open fhaefele opened this issue 1 year ago • 8 comments

test_horizontal example example2

fhaefele avatar Jul 02 '24 11:07 fhaefele

Hm, merging and resolving conflicts is still pretty new to me. I gave it my best. Also I have addressed all of your comments. Let me know if everything fits now, else I will try to fix it asap. I was also thinking of including that 'parent' property which you discussed in the other PR.

I also don't know whether you saw that I made changes to violinplot.m as well. I hope those are fine as well.

fhaefele avatar Jul 04 '24 13:07 fhaefele

Should be done and ready to merge. Do you want to also add the 'parent' property from #24 ? Should be an easy inclusion.

fhaefele avatar Jul 06 '24 19:07 fhaefele

Do you want to also add the 'parent' property from https://github.com/bastibe/Violinplot-Matlab/pull/24 ?

That would be a good idea, thank you!

bastibe avatar Jul 07 '24 11:07 bastibe

I have added now the parent property and checked the functionality of the orientation swap and the 'parent' axis in a modified testviolinplot.m. To me it looks like it works fine.

fhaefele avatar Jul 08 '24 09:07 fhaefele

Looks good to me! Thank you!

If you want to, you could add an example to the README.

Is this ready to merge on your end?

bastibe avatar Jul 08 '24 09:07 bastibe

Yeah on my end it should be ready. However, if you want me to add an example in the README, then we should maybe wait with merging. The same goes for the testviolinplot.m. I could add some tests to facilitate any future PR don't create problems with the two new features.

fhaefele avatar Jul 08 '24 11:07 fhaefele

I'll leave it up to you whether you want to add it to the README.

bastibe avatar Jul 08 '24 11:07 bastibe

I have edited the README and the readme_figures.m respectively. The README now shows a code snippet that can work on its own, which the previous one couldn't. I have also added two new test cases into testviolinplot.m which test the 'Parent' and 'Orientation' property. Feel free to merge it into the main branch as you like.

fhaefele avatar Jul 12 '24 08:07 fhaefele

Beautiful! Thank you!

bastibe avatar Jul 15 '24 11:07 bastibe