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

[ENH] Violin Plot: New widget #5252

Merged
merged 7 commits into from
Feb 19, 2021
Merged

[ENH] Violin Plot: New widget #5252

merged 7 commits into from
Feb 19, 2021

Conversation

VesnaT
Copy link
Contributor

@VesnaT VesnaT commented Feb 10, 2021

Issue

Fixes #5215

Includes
  • Code changes
  • Tests
  • Documentation

@VesnaT VesnaT force-pushed the violinplot branch 2 times, most recently from 67c4fa8 to 171bb87 Compare February 10, 2021 12:59
@codecov
Copy link

codecov bot commented Feb 10, 2021

Codecov Report

Merging #5252 (f1b0f5a) into master (50345c2) will increase coverage by 0.13%.
The diff coverage is 95.20%.

@@            Coverage Diff             @@
##           master    #5252      +/-   ##
==========================================
+ Coverage   85.19%   85.33%   +0.13%     
==========================================
  Files         300      301       +1     
  Lines       60977    61773     +796     
==========================================
+ Hits        51950    52714     +764     
- Misses       9027     9059      +32     

@VesnaT VesnaT force-pushed the violinplot branch 4 times, most recently from 581073d to e4f6104 Compare February 11, 2021 13:22
@VesnaT
Copy link
Contributor Author

VesnaT commented Feb 11, 2021

image

@VesnaT VesnaT force-pushed the violinplot branch 2 times, most recently from 91ebfc2 to cedc3fe Compare February 12, 2021 10:02
@ajdapretnar
Copy link
Contributor

Icon is available once rebased. :)

sorted_model.setSourceModel(self._value_var_model)
sorted_model.sort(0)

view = self._value_var_view = ListViewSearch()
Copy link
Member

Choose a reason for hiding this comment

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

These ListViewSerach boxes need a greater minimum height. Now, these selectors are useless if the widget is small enough that the controlArea scrollbar is shown.

image

Why are they so small?

@BlazZupan
Copy link
Contributor

Nice widget! When the feature we use for subgrouping that is originally numerical is discretized, the axis labels overlap and become unreadable. Here I used the housing data set and discretized CRIM.

image

@BlazZupan
Copy link
Contributor

Labels overlap when subgrouping variable has enough values, say, over five. I am using adult data set here. This is perhaps generic problem for most similar widgets. Labels should be displayed vertically in such cases, and I am not sure if this should be corrected in this widget alone.

image

@BlazZupan
Copy link
Contributor

If the variable has only one single value, the plot remains empty. That is, the box plot is too tiny to be displayed (probably the height of the box plot is 0). In such cases, strip plot would display the points, and rug plot would be empty as well (no lines displayed).

Should we set the minimum height of the box plot? Why is there no rug plot (a single line) in such case?

I am using adult data in this example.

image

@markotoplak
Copy link
Member

A possible solution for overlapping labels. Saves space compared to verticals and is probably easier to read.

image

@VesnaT
Copy link
Contributor Author

VesnaT commented Feb 19, 2021

How about something like that?

image

Should not be difficult to apply since already implemented.

@markotoplak markotoplak merged commit 519e51e into biolab:master Feb 19, 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.

Violin Plot
5 participants