Skip to content

PopulationPlot: ScatterOnBox data format#1440

Merged
swharden merged 5 commits intoScottPlot:masterfrom
Syntaxrabbit:master
Dec 22, 2021
Merged

PopulationPlot: ScatterOnBox data format#1440
swharden merged 5 commits intoScottPlot:masterfrom
Syntaxrabbit:master

Conversation

@Syntaxrabbit
Copy link

@Syntaxrabbit Syntaxrabbit commented Nov 16, 2021

Screenshot_20211117-171029_Firefox

Screenshot_20211117-171047_Firefox

This commit creates a new type of population plot with semitransparent box plots and scatters.
The DataFormat enum type "ScatterOnBox" saves some space on the diagram; often used in scientific environments for comparison of many populations.

Syntaxrabbit added 2 commits November 16, 2021 19:55
…ce on the diagram; often used in scientific environments for comparison of many populations.
…ce on the diagram; often used in scientific environments for comparison of many populations.
@swharden
Copy link
Member

Hi @Syntaxrabbit, thanks for this! I'll take a closer look this evening.

If you could edit your original comment to include a screenshot of what this plot type looks like, that would be great!

Bonus points if you can add a cookbook example by adding to the bottom of Recipes/Plottable/Population.cs 🚀

@swharden swharden changed the title New DataFormat "ScatterOnBox" for PopulationPlot PopulationPlot: ScatterOnBox data format Nov 17, 2021
@Syntaxrabbit
Copy link
Author

Syntaxrabbit commented Nov 17, 2021

Thank you for your help. Of course, I will do the cookbook later.

Edit: Could you tell me what you'd expect from the cookbook example to look like?

@swharden swharden mentioned this pull request Dec 22, 2021
82 tasks
@swharden
Copy link
Member

Thanks for this feature @Syntaxrabbit! The PopulationPlot plot type is an intimidatingly large and complex plot type with a confusing API. It will likely get deeply refactored in the next major version of ScottPlot to make it easier to use. You did a good job wedging this feature in!

I added a cookbook example showing how to change the display format to overlapping scatter/bar (not scatter/box). I'm not really satisfied with the current options - it seems that box-and-whisker plots are always drawn as half-boxes. I'll create a triaged issue to hopefully work to improve this some time in the future (#1028)

PS: I've been copy/pasting this message a lot lately: Sorry for the delay! It took me an unexpectedly long time to get to this because I moved houses and it was a lot more disruptive than I predicted, then right after I got sick for several weeks. I'm doing better now and am happy to be picking this up again. Thanks for your patience along the way!

@swharden swharden enabled auto-merge December 22, 2021 00:06
@swharden swharden merged commit e7aacd9 into ScottPlot:master Dec 22, 2021
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