Skip to content

[ENH] BoxPlot: Write the anova/t-test statistic onto the plot.#3945

Merged
lanzagar merged 3 commits intobiolab:masterfrom
thocevar:boxplot-report
Aug 2, 2019
Merged

[ENH] BoxPlot: Write the anova/t-test statistic onto the plot.#3945
lanzagar merged 3 commits intobiolab:masterfrom
thocevar:boxplot-report

Conversation

@thocevar
Copy link
Contributor

Issue

Fixes #3927

Description of changes

Move the t-test or anova statistic from the widget onto the plot, which puts it in the report and on the exported image.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented Jul 29, 2019

Codecov Report

Merging #3945 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3945      +/-   ##
==========================================
- Coverage   85.02%   85.02%   -0.01%     
==========================================
  Files         378      378              
  Lines       66705    66688      -17     
==========================================
- Hits        56715    56700      -15     
+ Misses       9990     9988       -2

@codecov
Copy link

codecov bot commented Jul 29, 2019

Codecov Report

Merging #3945 into master will increase coverage by 0.1%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #3945     +/-   ##
=========================================
+ Coverage   85.02%   85.13%   +0.1%     
=========================================
  Files         378      378             
  Lines       66705    67124    +419     
=========================================
+ Hits        56715    57144    +429     
+ Misses       9990     9980     -10

def draw_stat(self):
if self.stat_test:
l = QGraphicsSimpleTextItem(self.stat_test)
l.setFont(self._axis_font)
Copy link
Contributor

Choose a reason for hiding this comment

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

The text does not render correctly on my machine -- small parentheses, and no ' in "Student's".

Screenshot 2019-07-31 at 16 10 50

It works (and also looks OK) if I remove setFont.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Our _axis_font, which is just the default (_axis_font = QFont()), doesn't display some characters nicely? This is bad.

@lanzagar lanzagar merged commit 47f1533 into biolab:master Aug 2, 2019
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.

BoxPlot: add statistics and N to image

4 participants