Repository: biolab/orange3

Issue:
Feature Statistics should have more space at bottom
<!-- 
Thanks for taking the time to report a bug!
If you're raising an issue about an add-on (i.e., installed via Options > Add-ons), raise an issue in the relevant add-on's issue tracker instead. See: https://github.com/biolab?q=orange3
To fix the bug, we need to be able to reproduce it. Please answer the following questions to the best of your ability.
-->


**What's wrong?**
<!-- Be specific, clear, and concise. Include screenshots if relevant. -->
<!-- If you're getting an error message, copy it, and enclose it with three backticks (```). -->
This is really an æsthetic thing: As can be seen in the attached screen shot, the Feature Statistics widget shows the _x_-axis of the bottom values tightly pressed against the bottom of the window.  To me it gives the impression that the bars have been chopped off.  It would be better if there were at least a few pixels’ worth of space below the _x_-axis.

<img width="1052" alt="Screenshot 2021-12-29 at 11 55 35" src="https://user-images.githubusercontent.com/10616212/147655910-00b62bc2-d995-457c-a4ce-01ef5044ef58.png">

**How can we reproduce the problem?** 
<!-- Upload a zip with the .ows file and data. -->
<!-- Describe the steps (open this widget, click there, then add this...) -->





**What's your environment?**
<!-- To find your Orange version, see "Help → About → Version" or `Orange.version.full_version` in code -->
- Operating system: 12.1
- Orange version: 3.31.0
- How you installed Orange: From the download at https://orangedatamining.com/download/#macos



Discussion:

Resolving patch:
diff --git a/Orange/widgets/data/owfeaturestatistics.py b/Orange/widgets/data/owfeaturestatistics.py
--- a/Orange/widgets/data/owfeaturestatistics.py
+++ b/Orange/widgets/data/owfeaturestatistics.py
@@ -16,7 +16,7 @@
 import scipy.sparse as sp
 from AnyQt.QtCore import Qt, QSize, QRectF, QModelIndex, pyqtSlot, \
     QItemSelection, QItemSelectionRange, QItemSelectionModel
-from AnyQt.QtGui import QPainter, QColor
+from AnyQt.QtGui import QPainter, QColor, QPalette
 from AnyQt.QtWidgets import QStyledItemDelegate, QGraphicsScene, QTableView, \
     QHeaderView, QStyle, QStyleOptionViewItem
 
@@ -752,13 +752,20 @@ def __init__(self):
 
         self.data = None  # type: Optional[Table]
 
-        # Main area
         self.model = FeatureStatisticsTableModel(parent=self)
         self.table_view = FeatureStatisticsTableView(self.model, parent=self)
         self.table_view.selectionModel().selectionChanged.connect(self.on_select)
         self.table_view.horizontalHeader().sectionClicked.connect(self.on_header_click)
 
-        self.controlArea.layout().addWidget(self.table_view)
+        box = gui.vBox(self.controlArea)
+        box.setContentsMargins(0, 0, 0, 4)
+        pal = QPalette()
+        pal.setColor(QPalette.Window,
+                     self.table_view.palette().color(QPalette.Base))
+        box.setAutoFillBackground(True)
+        box.setPalette(pal)
+
+        box.layout().addWidget(self.table_view)
 
         self.color_var_model = DomainModel(
             valid_types=(ContinuousVariable, DiscreteVariable),


Test patch: